Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

It we want to get the current version of a external package and make it available in the release, there are several options.

...

Code Block
languagebash
sit_setup ana-current scikit-beam-devel
cd scikit-beam-devel
sit_setup
git clone https://github.com/scikit-beam/scikit-beam.git
mv scikit-beam scikit-beam-devel         # not neccessary, but onewe'll wayuse to avoid name collision withscikit-beam for our SConscript proxy package
cd scikit-beam-devel

# now we'll build it, and 'install' it in a local directory called install
python setup.py build
python setup.py install --prefix=install --old-and-unmanageable

...

Code Block
languagepy
Import('*')
from SConsTools.standardExternalPackage import standardExternalPackage
PREFIX = '/reg/neh/home/davidsch/rel/scikit-beam-devel/scikit-beam-devel/install'
PYDIR = '/reg/neh/home/davidsch/rel/scikit-beam-devel/scikit-beam-devel/install/lib/python2.7/site-packages'
standardExternalPackage('skbeam', **locals())

where you edit for your prefix and pydir.

This is not the best for a developer. Everytime you modify the source, you have to build and install again using the commands

Code Block
python setup.py build
python setup.py install --prefix=install --old-and-unmanageable

Development Mode

https://pythonhosted.org/setuptools/setuptools.html#development-mode