pypa / setuptools

Official project repository for the Setuptools build system
https://pypi.org/project/setuptools/
MIT License
2.46k stars 1.18k forks source link

dependency_links seems to be unable to work with git over ssh #407

Open ghost opened 9 years ago

ghost commented 9 years ago

Originally reported by: warrior2031 (Bitbucket: warrior2031, GitHub: warrior2031)


#!python

from setuptools import setup
import os
# os.system('pip install -e git+git@bitbucket.org:opticsdevelopment/serialization.git#egg=serialization')
setup(
    name='rest_framework',
    version='',
    packages=['base_tests', 'rest_framework', 'rest_framework.resources'],
    url='',
    license='',
    author='michael',
    author_email='warrior2031@mail.ru',
    description='',
    install_requires=[
        'ZODB',
        'pymongo',
        'zodbpickle'
    ],
    dependency_links=['git+git@bitbucket.org:opticsdevelopment/serialization.git#egg=serialization']
)

So this gives as output

#!python

Not found: git+git@bitbucket.org:opticsdevelopment/serialization.git#egg=serialization

However if I would uncomment third line then dependency would be installed succesfully.

I think of it as bug because documentation says

"VCS being used by prepending the URL with a certain prefix. Currently available are:

svn+URL for Subversion, git+URL for Git, and hg+URL for Mercurial"

And my url is in the form of git+URL right?


ghost commented 9 years ago

Original comment by insideapp (Bitbucket: insideapp, GitHub: insideapp):


Your link is not recognized by the setuptools fetcher. It should be as follows:

git+ssh://git@bitbucket.org/opticsdevelopment/serialization[@master]#egg=serialization

where optional @master may be any named branch or even commit hash.

cscetbon commented 7 years ago

Any news on that ticket ? I can't have it to work too ...