I have tried the following installation methods with no success to install a python package with a specific commit of a git repository:
$ python3 setup.py install --user
$ pip3 install -e .
$ python3 -m pip install -e .
Here is setup.py
:
import sys
from setuptools import setup
install_requires = [
# 'numpy>=1.9.0' # works
# 'numpy' # works
# 'git+https://github.com/numpy/numpy' # works
# 'git+https://github.com/numpy/numpy@4c83c0444c68b89b051f7ef8d8eb1a2276439d78' # does not work
# 'git+git://github.com/numpy/numpy.git@4c83c0444c68b89b051f7ef8d8eb1a2276439d78' # does not work
# 'numpy@git+git://github.com/numpy/numpy.git@4c83c04' # installs the "best match" for numpy, not this commit
# 'numpy @ git+ssh://git@github.com/numpy/numpy@4c83c0444c68b89b051f7ef8d8eb1a2276439d78#egg=numpy' # installs the "best match" for numpy, not this commit
]
setup(
install_requires=install_requires,
)
I've updated pip and setuptools both locally and as root:
pip install -U pip setuptools
No change.
I've scanned setuptools, pip and other docs with no example that provides a working result.
How you specify a specific commit of a specific git repo as a dependency in a python package using setuptools?