Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Git version in setup.py breaks virtual environments #20

Closed
sionide21 opened this Issue Mar 12, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Since setup.py include the following line:

git_version = os.popen('git describe --tags --abbrev=6').read().strip()[7:]

it picks up the git version from my projects repo and adds it to the beanstalkc version. This breaks pip if it expecting a specific version because it can no longer match the required version number. For example:

$ ./ve/bin/pip install beanstalkc
$ ./ve/bin/pip freeze | grep beanstalkc
beanstalkc==0.2.0.dev2-g2a8dd2

Which is fine without a required version, but if I have beanstalkc==0.2.0 in a requirements.pip file:

$ ./ve/bin/pip install -r requirements.pip
Downloading/unpacking beanstalkc==0.2.0 (from -r requirements.pip (line 12))
  Running setup.py egg_info for package beanstalkc
  Source in ./ve/build/beanstalkc has the version 0.2.0.dev2-g2a8dd2, which does not match the requirement beanstalkc==0.2.0 (from -r requirements.pip (line 12))
Source in ./ve/build/beanstalkc has version 0.2.0.dev2-g2a8dd2 that conflicts with beanstalkc==0.2.0 (from -r requirements.pip (line 12))
Owner

earl commented Mar 12, 2012

Thanks for the report. This was fixed in c79c518 a while ago. However, this fix has not yet made it into a beanstalkc release (and has therefore not yet been published to PyPI).

@earl earl closed this Mar 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment