-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
sage --standard
, sage --optional
and sage --experimental
are broken
#32885
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
sage --standard
, sage --optional
and sage --experimental
are broken
This comment has been minimized.
This comment has been minimized.
comment:5
Something like this? diff --git a/src/bin/sage-list-packages b/src/bin/sage-list-packages
index 813b1c0d64..93e3438b11 100755
--- a/src/bin/sage-list-packages
+++ b/src/bin/sage-list-packages
@@ -99,8 +99,10 @@ L.sort(key=lambda pkg: pkg.name)
# print (while getting rid of None in versions)
for pkg in L:
- pkg.installed_version = pkg.installed_version or 'not_installed'
- pkg.remote_version = pkg.remote_version or '?'
- print(format_string.format(**pkg._asdict()))
+ d = {}
+ d['name'] = pkg.name
+ d['installed_version'] = pkg.installed_version or 'not_installed'
+ d['remote_version'] = pkg.remote_version or '?'
+ print(format_string.format(**d))
if WARN:
print(WARN) |
comment:6
Or diff --git a/src/bin/sage-list-packages b/src/bin/sage-list-packages
index 813b1c0d64..16a6a4ab18 100755
--- a/src/bin/sage-list-packages
+++ b/src/bin/sage-list-packages
@@ -99,8 +99,8 @@ L.sort(key=lambda pkg: pkg.name)
# print (while getting rid of None in versions)
for pkg in L:
- pkg.installed_version = pkg.installed_version or 'not_installed'
- pkg.remote_version = pkg.remote_version or '?'
+ pkg = pkg._replace(installed_version = pkg.installed_version or 'not_installed',
+ remote_version = pkg.remote_version or '?')
print(format_string.format(**pkg._asdict()))
if WARN:
print(WARN) |
comment:7
Regardless, I still get an error with
The |
comment:8
The |
Branch: u/jhpalmieri/sage-list-packages |
comment:10
Here's a branch; it also adds spaces in some deprecation messages (to print "the functions standard_packages, optional_packages, experimental_packages are deprecated" instead of "... experimental_packagesare deprecated"). New commits:
|
Commit: |
Author: John Palmieri |
comment:11
It works on my side. I wait for the patchbot status to change the status to positive review. |
Reviewer: Sébastien Labbé |
comment:13
Thanks! |
Changed branch from u/jhpalmieri/sage-list-packages to |
On Ubuntu 18.04 with 9.5.beta6,
sage --standard
,sage --optional
andsage --experimental
are broken:This leads to the following doctests to fail.
gives
Component: distribution
Author: John Palmieri
Branch/Commit:
50daef4
Reviewer: Sébastien Labbé
Issue created by migration from https://trac.sagemath.org/ticket/32885
The text was updated successfully, but these errors were encountered: