Remove sage_setup/fpickle_setup.py
Closed this issue · 21 comments
The file sage_setup/fpickle_setup.py does not seem to be needed anymore, so remove it. This also removes some uses of six in sage/setup.py.
Depends on #29702
Component: python3
Author: John Palmieri
Branch/Commit: 212d183
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/30011
Last 10 new commits:
f9a30f6 | build/pkgs/sagelib/spkg-install: Fix up error exits |
00a1d57 | Merge branch 't/29411/make_sagelib_a_script_package' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
df3f05e | build/make/Makefile.in [SCRIPT_PACKAGE_templ]: cd into the SPKG directory; adjust spkg-install scripts |
5372065 | Merge branch 't/29793/script_packages_should_cd_into_the_spkg_directory' into t/29411/make_sagelib_a_script_package |
c166b97 | Merge branch 't/29411/make_sagelib_a_script_package' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
cc30471 | build/bin/write-dockerfile.sh: Do not ADD removed file src/Makefile.in |
8a41326 | Merge branch 't/29411/make_sagelib_a_script_package' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
a56dc35 | Merge tag '9.2.beta1' into t/29702/public/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
ee7cce8 | Merge commit 'a56dc35031486df9378f17c2d2ae6405946fac25' of git://trac.sagemath.org/sage into t/30011/sage_setup__remove_use_of_six |
b1fb10c | src/sage_setup/fpickle_setup.py: Remove use of six |
Author: Matthias Koeppe
Description changed:
---
+++
@@ -1 +1 @@
-
+`sage_setup.docbuild` will be done on a separate ticket.Description changed:
---
+++
@@ -1 +1 @@
-`sage_setup.docbuild` will be done on a separate ticket.
+`sage_setup.docbuild` will be done on a separate ticket (#30010).A few questions:
- can we accomplish the same thing by installing
twisted(after having removed it in #29754), and then importingtwisted.persisted.styles? That is, can we deletefpickle_setup.py? - if not, then should we update that file with the latest version from
twisted, for py3 compatibility?
To be honest, I don't really know what fpickle_setup.py is supposed to do, or where it is tested in the Sage library, or what goes wrong if we remove its functionality.
Maybe it's not worth it to install the most recent twisted, since it depends on a lot of other packages, most of which we don't install right now:
zope.interface>=4.4.2
constantly>=15.1
incremental>=16.10.1
Automat>=0.3.0
hyperlink>=17.1.1
PyHamcrest!=1.10.0,>=1.9.0
attrs>=19.2.0
[all_non_platform]
pyopenssl>=16.0.0
service_identity>=18.1.0
idna!=2.3,>=0.6
pyasn1
cryptography>=2.5
appdirs>=1.4.0
bcrypt>=3.0.0
soappy
pyserial>=3.0
h2<4.0,>=3.0
priority<2.0,>=1.1.0
Replying to @jhpalmieri:
To be honest, I don't really know what
fpickle_setup.pyis supposed to do, or where it is tested in the Sage library, or what goes wrong if we remove its functionality.
Neither do I.
I'm testing out an updated version of fpickle_setup from version 20.3.0 of twisted. If it passes tests, I'll push the branch here.
It worked with an updated version, but make ptestlong also passed with this change instead:
diff --git a/src/setup.py b/src/setup.py
index 72c59ace71..9a41ce1535 100755
--- a/src/setup.py
+++ b/src/setup.py
@@ -20,7 +20,7 @@ from sage_setup import excepthook
sys.excepthook = excepthook
# This import allows instancemethods to be pickable
-import sage_setup.fpickle_setup
+# import sage_setup.fpickle_setup
#########################################################
### List of ExtensionsSee #11874 for some information. I certainly don't see the failure there: comment:46, "PicklingError: Can't pickle <type 'instancemethod'>: attribute lookup builtin.instancemethod failed".
Should we just get rid of fpickle_setup.py instead?
Replying to @jhpalmieri:
Should we just get rid of
fpickle_setup.pyinstead?
Sounds good.
Changed branch from u/mkoeppe/sage_setup__remove_use_of_six to u/jhpalmieri/sage_setup__remove_use_of_six
New commits:
212d183 | trac 30011: remove sage_setup/fpickle_setup.py |
Changed author from Matthias Koeppe to John Palmieri
Description changed:
---
+++
@@ -1 +1 @@
-`sage_setup.docbuild` will be done on a separate ticket (#30010).
+The file `sage_setup/fpickle_setup.py` does not seem to be needed anymore, so remove it. This also removes some uses of `six` in `sage/setup.py`.I am testing this with fedora-28-standard, which uses system python 3.6.5
Reviewer: Matthias Koeppe
Changed branch from u/jhpalmieri/sage_setup__remove_use_of_six to 212d183