#19187: Add rules for installing packages with pip
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_work
Priority: critical | Milestone: sage-6.9
Component: build | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/19187 | fdba3ee0772b1885c3f60cb35f850fee576a7f9a
Dependencies: #19119 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Replying to [comment:19 jdemeyer]:
> Think of these packages as forming a new category: we have standard
packages, optional packages, experimental packages and pip packages. They
are not optional packages and cannot be listed by some `sage --whatever`
command.
What is this piprules file then!? It is possible to check the last version
of a package with their json api
{{{
import urllib2
import json
def pip_versions(package_name):
url = "https://pypi.python.org/pypi/{}/json".format(package_name)
try:
data = json.load(urllib2.urlopen(urllib2.Request(url)))
except urllib2.HTTPError:
return []
else:
versions = data["releases"].keys()
return versions
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19187#comment:23>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.