Code Monkey home page Code Monkey logo

2b04e6921f28f24ab2da7bb2cd866e7073f88f89f769160d721c3ad90ac4e9b5's Introduction

This doc is copied from http://github.com/jbalogh/zamboni-lib#readme

This is the collection of FlightDeck's pure-python dependencies.

From your FlightDeck root, do this:

git clone --recursive git://github.com/zalun/FlightDeck-lib.git vendor

Sit back and relax while all that downloads, then proceed on your merry way.

To keep it up to date:

pushd vendor && git pull && git submodule update --init && popd

How FlightDeck-lib was made

pip install -I --install-option="--home=`pwd`/vendor" --src='vendor/src' -r requirements/development.txt

# this step wasn't done (yet?)
# ..delete some junk from vendor/lib/python...

# Create the .pth file so Python can find our src libs.
find src -type d -depth 1 >> flightdeck.pth

# Add all the submodules.
for f in src/*; do
    pushd $f >/dev/null && REPO=$(git config remote.origin.url) && popd > /dev/null && git submodule add $REPO $f
done
git add .

Using your own vendor lib

We add these lines to our manage.py file, since it's the entrypoint to everything we do in FlightDeck Adjust as you see fit. :

import site
site.addsitedir('vendor')
site.addsitedir('vendor/lib/python')

addsitedir adds that directory to the Python path and looks for other .pth files in that dir. We use a .pth in vendor to load our src/ packages, and pip may have added other .pth files in vendor/lib/python.

2b04e6921f28f24ab2da7bb2cd866e7073f88f89f769160d721c3ad90ac4e9b5's People

Contributors

clouserw avatar davedash avatar mozilla-github-standards avatar pennyfx avatar seanmonstar avatar zalun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.