Running `pip install --no-deps -e .` with the following setup.py works
---- setup.py -------
from setuptools import setup, find_packages

setup(
    name="x",
    version='1.0',
    packages=find_packages(exclude=['ez_setup']),
    setup_requires=[
        "PasteScript>=1.7",
    ],
)

but after adding (dead) link in dependency_links like this

----- setup.py -----
from setuptools import setup, find_packages

setup(
    name="x",
    version='1.0',
    packages=find_packages(exclude=['ez_setup']),
    setup_requires=[
        "PasteScript>=1.7",
    ],
    dependency_links=[
        "http://www.pylonshq.com/download/"
    ],
)

it does no longer work. Please note I do not specify --process-dependency-links option. I get this error:


(ve)pdobrogost@host:~/tmp/x$ pip install --no-deps -e .
Obtaining file:///home/users/pdobrogost/tmp/x
  Running setup.py (path:/home/users/pdobrogost/tmp/x/setup.py) egg_info for package from file:///home/users/pdobrogost/tmp/x
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/users/pdobrogost/tmp/x/setup.py", line 13, in <module>
        "http://www.pylonshq.com/download/"
      File "/opt/python/2.7.5/lib/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/dist.py", line 239, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/dist.py", line 263, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/pkg_resources.py", line 564, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/pkg_resources.py", line 802, in best_match
        return self.obtain(req, installer) # try and download/install
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/pkg_resources.py", line 814, in obtain
        return installer(requirement)
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_egg
        return cmd.easy_install(req)
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 581, in easy_install
        self.local_index
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 586, in fetch_distribution
        self.prescan()
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 484, in prescan
        list(map(self.scan_url, self.to_scan))
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 768, in scan_url
        self.process_url(url, True)
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 305, in process_url
        f = self.open_url(url, "Download error on %s: %%s -- Some packages may not be found!" % url)
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 702, in open_url
        return open_with_auth(url, self.opener)
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 901, in _socket_timeout
        return func(*args, **kwargs)
      File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 1014, in open_with_auth
        fp = opener(request)
      File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 404, in open
        response = self._open(req, data)
      File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 422, in _open
        '_open', req)
      File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 382, in _call_chain
        result = func(*args)
      File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 1214, in http_open
        return self.do_open(httplib.HTTPConnection, req)
      File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 1187, in do_open
        r = h.getresponse(buffering=True)
      File "/opt/python/2.7.5/lib/python2.7/httplib.py", line 1045, in getresponse
        response.begin()
      File "/opt/python/2.7.5/lib/python2.7/httplib.py", line 409, in begin
        version, status, reason = self._read_status()
      File "/opt/python/2.7.5/lib/python2.7/httplib.py", line 365, in _read_status
        line = self.fp.readline(_MAXLINE + 1)
      File "/opt/python/2.7.5/lib/python2.7/socket.py", line 476, in readline
        data = self._sock.recv(self._rbufsize)
    socket.timeout: timed out
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/home/users/pdobrogost/tmp/x/setup.py", line 13, in <module>

    "http://www.pylonshq.com/download/"

  File "/opt/python/2.7.5/lib/python2.7/distutils/core.py", line 112, in setup

    _setup_distribution = dist = klass(attrs)

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/dist.py", line 239, in __init__

    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/dist.py", line 263, in fetch_build_eggs

    parse_requirements(requires), installer=self.fetch_build_egg

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/pkg_resources.py", line 564, in resolve

    dist = best[req.key] = env.best_match(req, self, installer)

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/pkg_resources.py", line 802, in best_match

    return self.obtain(req, installer) # try and download/install

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/pkg_resources.py", line 814, in obtain

    return installer(requirement)

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_egg

    return cmd.easy_install(req)

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 581, in easy_install

    self.local_index

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 586, in fetch_distribution

    self.prescan()

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 484, in prescan

    list(map(self.scan_url, self.to_scan))

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 768, in scan_url

    self.process_url(url, True)

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 305, in process_url

    f = self.open_url(url, "Download error on %s: %%s -- Some packages may not be found!" % url)

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 702, in open_url

    return open_with_auth(url, self.opener)

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 901, in _socket_timeout

    return func(*args, **kwargs)

  File "/home/users/pdobrogost/tmp/ve/lib/python2.7/site-packages/setuptools/package_index.py", line 1014, in open_with_auth

    fp = opener(request)

  File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 404, in open

    response = self._open(req, data)

  File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 422, in _open

    '_open', req)

  File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 382, in _call_chain

    result = func(*args)

  File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 1214, in http_open

    return self.do_open(httplib.HTTPConnection, req)

  File "/opt/python/2.7.5/lib/python2.7/urllib2.py", line 1187, in do_open

    r = h.getresponse(buffering=True)

  File "/opt/python/2.7.5/lib/python2.7/httplib.py", line 1045, in getresponse

    response.begin()

  File "/opt/python/2.7.5/lib/python2.7/httplib.py", line 409, in begin

    version, status, reason = self._read_status()

  File "/opt/python/2.7.5/lib/python2.7/httplib.py", line 365, in _read_status

    line = self.fp.readline(_MAXLINE + 1)

  File "/opt/python/2.7.5/lib/python2.7/socket.py", line 476, in readline

    data = self._sock.recv(self._rbufsize)

socket.timeout: timed out

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/users/pdobrogost/tmp/x
Storing debug log for failure in /home/users/pdobrogost/.pip/pip.log
(ve)pdobrogost@host:~/tmp/x$