#11874: Remove twisted spkg
----------------------------------------------+-----------------------------
   Reporter:  dimpase                         |          Owner:  tbd            
        
       Type:  enhancement                     |         Status:  needs_info     
        
   Priority:  major                           |      Milestone:  sage-5.0       
        
  Component:  packages                        |       Keywords:  twisted; 
notebook      
Work_issues:                                  |       Upstream:  N/A            
        
   Reviewer:  Dmitrii Pasechnik, Jason Grout  |         Author:  Rado Kirov, 
Jason Grout
     Merged:                                  |   Dependencies:  #12329, #11080 
        
----------------------------------------------+-----------------------------

Comment(by dimpase):

 Replying to [comment:46 dimpase]:
 >
 > I tried Jason's suggestion to replace the twisted import with importing
 misc.fpickle, but it doesn't work:
 I tried this by doing {{{./sage -f spgk/standard/sage-5.0....}}}, but I
 realized that this doesn't work as expected
 with sage-... spkg.
 If I instead start from clean install beta8, apply the patch, remove
 twisted spkg, and in sage-... spkg apply the patch
 {{{
 --- a/setup.py
 +++ b/setup.py
 @@ -235,7 +235,7 @@
      commands may be run at the same time.
      """
      from multiprocessing import Pool
 -    import twisted.persisted.styles #doing this import will allow
 instancemethods to be pickable
 +    import sage.misc.misc.fpickle #doing this import will allow
 instancemethods to be pickable
      p = Pool(nthreads)
      process_command_results(p.imap(apply_pair, command_list))
 }}}
 then start building sage, it ends up with
 {{{
 Building modified file sage/ext/interpreters/wrapper_el.pyx.
 Executing 308 commands (using 1 thread)
 Traceback (most recent call last):
   File "setup.py", line 832, in <module>
     execute_list_of_commands(queue)
   File "setup.py", line 289, in execute_list_of_commands
     execute_list_of_commands_in_parallel(command_list, nthreads)
   File "setup.py", line 239, in execute_list_of_commands_in_parallel
     import sage.misc.misc.fpickle
   File "/usr/local/src/sage/sage-5.0.beta8/devel/sage-
 main/sage/misc/misc.py", line 38, in <module>
     import sage.misc.prandom as random
   File "/usr/local/src/sage/sage-5.0.beta8/devel/sage-
 main/sage/misc/prandom.py", line 56, in <module>
     from sage.misc.randstate import current_randstate
 ImportError: No module named randstate
 Error installing modified sage library code.
 ERROR installing Sage
 }}}
 What am I doing wrong?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11874#comment:47>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to