This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Commit 1a93d0d Matthias Koeppe
committed
File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 79
79
print ("Discovered Python/Cython sources, time: %.2f seconds." % (time .time () - t ))
80
80
81
81
82
- from sage_setup .command .sage_install import sage_install
82
+ from sage_setup .command .sage_install import sage_install_and_clean
83
83
84
84
#########################################################
85
85
### Distutils
177
177
cmdclass = dict (build = sage_build ,
178
178
build_cython = sage_build_cython ,
179
179
build_ext = sage_build_ext ,
180
- install = sage_install ),
180
+ install = sage_install_and_clean ),
181
181
ext_modules = cython_modules )
Original file line number Diff line number Diff line change 8
8
from distutils .command .install import install
9
9
10
10
class sage_install (install ):
11
+
11
12
def run (self ):
12
13
install .run (self )
13
14
self .install_kernel_spec ()
14
- log .info ('Cleaning up stale installed files....' )
15
- t = time .time ()
16
- self .clean_stale_files ()
17
- log .info ('Finished cleaning, time: %.2f seconds.' % (time .time () - t ))
18
15
19
16
def install_kernel_spec (self ):
20
17
"""
@@ -31,6 +28,14 @@ def install_kernel_spec(self):
31
28
# the install_data directory for installing our Jupyter files.
32
29
SageKernelSpec .update (prefix = self .install_data )
33
30
31
+ class sage_install_and_clean (sage_install ):
32
+
33
+ def run (self ):
34
+ sage_install .run (self )
35
+ t = time .time ()
36
+ self .clean_stale_files ()
37
+ log .info ('Finished cleaning, time: %.2f seconds.' % (time .time () - t ))
38
+
34
39
def clean_stale_files (self ):
35
40
"""
36
41
Remove stale installed files.
You can’t perform that action at this time.
0 commit comments