New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging old version of Python distribution not working #215

Closed
jramnani opened this Issue May 2, 2012 · 5 comments

Comments

Projects
None yet
3 participants
@jramnani

jramnani commented May 2, 2012

I'm not able to package a historical release of a python distribution using FPM 0.4.9

$ fpm -s python -t deb -v 1.5 virtualenv
Searching for virtualenvReading http://pypi.python.org/simple/virtualenv/
Reading http://www.virtualenv.orgReading http://virtualenv.openplans.org
Best match: virtualenv 1.7.1.2
Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.2.tar.gz#md5=3be8a014c27340f48b56465f9109d9fa
Processing virtualenv-1.7.1.2.tar.gz
...

$ gem list fpm
fpm (0.4.9, 0.3.11)

My version of easy_install is able to find old versions:

$ easy_install virtualenv==1.5
Searching for virtualenv==1.5
Reading http://pypi.python.org/simple/virtualenv/
Reading http://www.virtualenv.org
Reading http://virtualenv.openplans.org
Best match: virtualenv 1.5
Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.tar.gz#md5=a8c756de9661323b1f95311e79f8a5f3
...

$ easy_install --version
distribute 0.6.24

Not sure if I'm doing something wrong, or if this is a bug. I'm using the example provided here:
https://github.com/jordansissel/fpm/wiki/ConvertingPython

Thanks,

Jeff Ramnani

@jordansissel

This comment has been minimized.

Owner

jordansissel commented May 2, 2012

Looks like a bug, thanks for the awesome details! I should be able to fix this quickly.

@agaffney

This comment has been minimized.

Contributor

agaffney commented May 2, 2012

This same problem is occuring with the ruby gem support.

$ fpm -s gem -t rpm --gem-bin-path /usr/bin --version 1.6.3 json_pure
Successfully installed json_pure-1.7.0
1 gem installed
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XpvceA
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HjNfdr
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.JnfIci
Processing files: rubygem-json_pure-1.6.3-1.noarch
Wrote: /tmp/package-rpm-build20120502-3699-1pd0vdo/RPMS/noarch/rubygem-json_pure-1.6.3-1.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.iAr7T1
Created rpm {"path":"rubygem-json_pure-1.6.3-1.noarch.rpm"}

@jordansissel

This comment has been minimized.

Owner

jordansissel commented May 3, 2012

The gem problem is tracked in #204

jordansissel added a commit that referenced this issue May 15, 2012

- Fix versioned downloading for gem and python packages.
  Tested: fpm -s gem -t deb -v 1.7.1 json
    Successfully installed json-1.7.1
  Tested: fpm -s python -t deb -v 2.1.6 simplejson
  Relevant output:
    Searching for simplejson==2.1.6
    Reading http://pypi.python.org/simple/simplejson/
    Reading http://github.com/simplejson/simplejson
    Reading http://undefined.org/python/#simplejson
    Best match: simplejson 2.1.6
    Downloading
    http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6
    .tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5
    Processing simplejson-2.1.6.tar.gz

  Related tickets: #215, #204
@jordansissel

This comment has been minimized.

Owner

jordansissel commented May 15, 2012

Fixed in master, will show up in the next fpm release.

@jramnani

This comment has been minimized.

jramnani commented May 17, 2012

Thank you very much.

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 18, 2014

jls
- Fix versioned downloading for gem and python packages.
  Tested: fpm -s gem -t deb -v 1.7.1 json
    Successfully installed json-1.7.1
  Tested: fpm -s python -t deb -v 2.1.6 simplejson
  Relevant output:
    Searching for simplejson==2.1.6
    Reading http://pypi.python.org/simple/simplejson/
    Reading http://github.com/simplejson/simplejson
    Reading http://undefined.org/python/#simplejson
    Best match: simplejson 2.1.6
    Downloading
    http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6
    .tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5
    Processing simplejson-2.1.6.tar.gz

  Related tickets: jordansissel#215, jordansissel#204

prof-milki pushed a commit to prof-milki/xpm that referenced this issue Dec 27, 2014

- Fix versioned downloading for gem and python packages.
  Tested: fpm -s gem -t deb -v 1.7.1 json
    Successfully installed json-1.7.1
  Tested: fpm -s python -t deb -v 2.1.6 simplejson
  Relevant output:
    Searching for simplejson==2.1.6
    Reading http://pypi.python.org/simple/simplejson/
    Reading http://github.com/simplejson/simplejson
    Reading http://undefined.org/python/#simplejson
    Best match: simplejson 2.1.6
    Downloading
    http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6
    .tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5
    Processing simplejson-2.1.6.tar.gz

  Related tickets: jordansissel#215, jordansissel#204

jordansissel added a commit that referenced this issue Apr 24, 2015

- Fix versioned downloading for gem and python packages.
  Tested: fpm -s gem -t deb -v 1.7.1 json
    Successfully installed json-1.7.1
  Tested: fpm -s python -t deb -v 2.1.6 simplejson
  Relevant output:
    Searching for simplejson==2.1.6
    Reading http://pypi.python.org/simple/simplejson/
    Reading http://github.com/simplejson/simplejson
    Reading http://undefined.org/python/#simplejson
    Best match: simplejson 2.1.6
    Downloading
    http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6
    .tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5
    Processing simplejson-2.1.6.tar.gz

  Related tickets: #215, #204

jordansissel added a commit that referenced this issue Jun 20, 2016

- Fix versioned downloading for gem and python packages.
  Tested: fpm -s gem -t deb -v 1.7.1 json
    Successfully installed json-1.7.1
  Tested: fpm -s python -t deb -v 2.1.6 simplejson
  Relevant output:
    Searching for simplejson==2.1.6
    Reading http://pypi.python.org/simple/simplejson/
    Reading http://github.com/simplejson/simplejson
    Reading http://undefined.org/python/#simplejson
    Best match: simplejson 2.1.6
    Downloading
    http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6
    .tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5
    Processing simplejson-2.1.6.tar.gz

  Related tickets: #215, #204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment