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():
59
59
60
60
def numpy ():
61
61
try :
62
- import setuptools
62
+ import setuptools as st
63
63
except ImportError :
64
64
print ("Installing required dependency: setuptools" )
65
65
setuptools ()
@@ -323,7 +323,7 @@ def install_from_pypi(package):
323
323
package , _ , version = package .rpartition ("==" )
324
324
url = "https://pypi.org/pypi/%s/%s/json" % (package , version )
325
325
else :
326
- url = "https://pypi.org/pypi/%s/json" % ( package , version )
326
+ url = "https://pypi.org/pypi/%s/json" % package
327
327
328
328
r = subprocess .check_output ("curl %s" % url , shell = True ).decode ("utf8" )
329
329
try :
@@ -367,7 +367,7 @@ def main(argv):
367
367
368
368
subparsers .add_parser (
369
369
"list" ,
370
- help = "list known packages with potential workarounds available for installation "
370
+ help = "list locally installed packages "
371
371
)
372
372
373
373
subparsers .add_parser (
@@ -426,9 +426,9 @@ def main(argv):
426
426
if pkg not in KNOWN_PACKAGES :
427
427
xit ("Unknown package: '%s'" % pkg )
428
428
else :
429
- KNOWN_PACKAGES [args . install ]()
429
+ KNOWN_PACKAGES [pkg ]()
430
430
elif args .command == "pypi" :
431
- for pkg in args .pypi .split ("," ):
431
+ for pkg in args .package .split ("," ):
432
432
install_from_pypi (pkg )
433
433
434
434
You can’t perform that action at this time.
0 commit comments