omb/notes.txt

39 lines
789 B
Plaintext
Raw Permalink Normal View History

2012-09-12 22:33:16 -07:00
omb script
omb2 script
make a module
2012-09-12 22:35:22 -07:00
fine in directory, PYTHONPATH, custom bash ...
need to actually install it
2012-09-12 22:33:16 -07:00
aside:
- hitchhiker's guide to packaging
- state of packaging
python setup.py install
innards of the setup.py
python setup.py register
python setup.py sdist upload
pip freeze
pip install
pip remove
2012-09-12 22:35:22 -07:00
example from-scratch python:
2012-09-12 22:33:16 -07:00
hg up 2.7
./configure --prefix=/Users/smcquay/py27
make -j3
make install
export PATH=~/py27/bin:$PATH
# won't work:
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | ~/py27/bin/python
# install distribute (for pip):
curl -O http://python-distribute.org/distribute_setup.py
~/py27/bin/python distribute_setup.py
# install pip
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | ~/py27/bin/python