Code review comment for lp:~allenap/maas-test/use-system-packages

Revision history for this message
Gavin Panella (allenap) wrote :

> pip install new-dev
> pip freeze > requirements.txt

This causes problems. If the version in requirements.txt differs from
another installed version, you get stuff like this:

$ make test
bin/python setup.py test
running test
Traceback (most recent call last):
  File "setup.py", line 37, in <module>
    "maas-test = maastest.main:main",
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File ".../local/lib/python2.7/site-packages/setuptools/command/test.py", line 128, in run
    self.distribution.fetch_build_eggs(self.distribution.install_requires)
  File ".../local/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
  File ".../local/lib/python2.7/site-packages/pkg_resources.py", line 630, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (flake8 2.0 (/home/gavin/Library/lib/python2.7/site-packages/flake8-2.0-py2.7.egg), Requirement.parse('flake8==2.1.0'))
make: *** [test] Error 1

Nothing ever just works, does it?

« Back to merge proposal