4

I have a setup.py file:

from setuptools import setup

setup(name='MyCartridge',
      version='1.0',
      description='My Cartridge',
      author='First Last',
      author_email='info@example.com',
      url='http://www.example.com/',
      install_requires=[
                        'CustomFieldAdminPlugin-0.2.8-r13289'
      ],
      dependency_links = [
                        'http://trac-hacks.org/svn/customfieldadminplugin/0.11#egg=CustomFieldAdminPlugin-0.2.8-r13289'
      ],
     )

When I run it, setuptools fails to checkout sources with error:

Can't download http://trac-hacks.org/svn/customfieldadminplugin/0.11#egg=CustomFieldAdminPlugin-0.2.8-r13289: 400 Bad Request

I tried to use svn+http, 0.11#egg, 0.11/#egg, 0.11@13289#egg, 0.11?p=13289#egg and it still fails to checkout.

What I did wrong?

Anthony
  • 12,407
  • 12
  • 64
  • 88
  • 1
    I strongly recommend you do not use dependency links *at all*, see [Additional actions in setup.py for install](http://programmers.stackexchange.com/a/223267) – Martijn Pieters Jan 11 '14 at 22:34
  • possible duplicate of [Can a Python package depend on a specific version control revision of another Python package?](http://stackoverflow.com/questions/2087492/can-a-python-package-depend-on-a-specific-version-control-revision-of-another-py) – Martijn Pieters Jan 20 '14 at 22:30

2 Answers2

1

According to documentation: http://pythonhosted.org/setuptools/setuptools.html#dependencies-that-aren-t-in-pypi

you should use svn+URL for Subversion or as a more complete version vcs+proto://host/path@revision#egg=project-version

So you should try svn+http://trac-hacks.org/svn/customfieldadminplugin/0.11 @13289#egg=CustomFieldAdminPlugin-0.2.8-r13289

Works for me btw.

Kirill Zaitsev
  • 4,511
  • 3
  • 21
  • 29
1

It was discovered that by default there was setuptools-0.6 installed at the server. After upgrading to setuptools-2.1 the problem gone.

Anthony
  • 12,407
  • 12
  • 64
  • 88