File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
graalpython/lib-graalpython/modules Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def setuptools():
5959
6060 def numpy ():
6161 try :
62- import setuptools
62+ import setuptools as st
6363 except ImportError :
6464 print ("Installing required dependency: setuptools" )
6565 setuptools ()
@@ -323,7 +323,7 @@ def install_from_pypi(package):
323323 package , _ , version = package .rpartition ("==" )
324324 url = "https://pypi.org/pypi/%s/%s/json" % (package , version )
325325 else :
326- url = "https://pypi.org/pypi/%s/json" % ( package , version )
326+ url = "https://pypi.org/pypi/%s/json" % package
327327
328328 r = subprocess .check_output ("curl %s" % url , shell = True ).decode ("utf8" )
329329 try :
@@ -367,7 +367,7 @@ def main(argv):
367367
368368 subparsers .add_parser (
369369 "list" ,
370- help = "list known packages with potential workarounds available for installation "
370+ help = "list locally installed packages "
371371 )
372372
373373 subparsers .add_parser (
@@ -426,9 +426,9 @@ def main(argv):
426426 if pkg not in KNOWN_PACKAGES :
427427 xit ("Unknown package: '%s'" % pkg )
428428 else :
429- KNOWN_PACKAGES [args . install ]()
429+ KNOWN_PACKAGES [pkg ]()
430430 elif args .command == "pypi" :
431- for pkg in args .pypi .split ("," ):
431+ for pkg in args .package .split ("," ):
432432 install_from_pypi (pkg )
433433
434434
You can’t perform that action at this time.
0 commit comments