I’m using pip to install a package from a git repository:
pip install -e git+git://github.com/knipknap/SpiffWorkflow.git@master#egg=SpiffWorkflow-dev
The repo gets cloned without a problem, but installation fails with this message:
Running setup.py egg_info for package SpiffWorkflow
Installing collected packages: SpiffWorkflow
Running setup.py develop for SpiffWorkflow
error: ("Can't get a consistent path to setup script from installation
directory", '/', '/home/fcorreia/venvs/myproj/src/spiffworkflow')
I have tried taking a look to the project’s setup.py, but without much success… Any idea?
It is because the flag
-emeans “editable”, and it is the same doingpython setup.py develop, that creates a symbolic link from<PACKAGE_NAME_LOWERCASE>to yoursite-packagesdirectory and not running an usual installation.Looking at SpiffWorkflow’s
setup.pyI can see where the problem relies:It says that the package content is located at
src, instead ofspiffworkflow(what develop mode expects).You can just drop the
-eflag and be happy:References: