Hi, On Wednesday, 10 October 2012 22:03:27 UTC-4, Aaron Meurer wrote: > > I was afraid it might happen, but I thought that there should at least > be a way to name the packages so that pip installs the right one in > Python 2 or Python 3. In fact, I still do not know for sure that this > is indeed not possible, so I would like to investigate this option > further before giving up on it. > > The naming of the tarball needs to include the python version in the format "-py2.7". Unfortunately, specifying only major version as in "-py2" and "-py3" won't work, as pip will reject the tarball as providing a python version that doesn't match with the requested one. So we need tarball (or symlinks) for each supported version.
> I did know that pip would be installing the release candidates, but > there's nothing I can do about that, except rename the tarballs to > trick it. > > pip starts out at http://pypi.python.org/pypi/sympy and it finds the "Home Page" link and the "Download URL" link. It then crawls those pages for links that include the text "homepage" and "download". From http://sympy.org (currently listed as the home page on pypi) it finds the download link and eventually the google page. Form all the pages that it has crawled, pip identifies source tarballs, compare their versions, and choose the latest. Currently, this is sympy0.7.2.rc1.python3.tar.gz since it considers the version as "0.7.2.rc1.python3" and this is lexically greater than "0.7.2.rc1". I suggest removing the "Home Page" link from http://pypi.python.org/pypi/sympy and see if that does not fix it. Another think is, that we should use PEP 386 convention for naming our tarballs, so "0.7.2rc1". This doesn't affect pip at the moment though, since it doesn't seem to care about PEP 386 for now. Regards, Julien -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/FfjVDxZIkSEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
