[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #7244 [Stem]: Stem no longer supports python versions less than 2.7



#7244: Stem no longer supports python versions less than 2.7
--------------------+-------------------------------------------------------
 Reporter:  eoinof  |          Owner:  atagar
     Type:  defect  |         Status:  new   
 Priority:  normal  |      Milestone:        
Component:  Stem    |        Version:        
 Keywords:          |         Parent:        
   Points:          |   Actualpoints:        
--------------------+-------------------------------------------------------

Comment(by atagar):

 > I was actually gonna ask if you were planning to support python 3 as
 well as 2.x ?

 Yup, I am. Look for "Arc from Python" on...

 http://www.atagar.com/arm/log.php

 > You'll need to do some work on exceptions..

 Not necessary. By including a 2to3 conversion as part of the build we can
 support both the 2.x and 3.x series. Here's the setup.py that I wrote
 during the summit...

 {{{
 #!/usr/bin/env python

 from stem import __version__, \
                  __author__, \
                  __contact__, \
                  __url__, \
                  __license__

 from distutils.core import setup

 try:
   from distutils.command.build_py import build_py_2to3 as build_py
 except ImportError:
   from distutils.command.build_py import build_py

 setup(name = 'stem',
       version = __version__,
       description = 'Controller library for tor',
       license = __license__,
       author = __author__,
       author_email = __contact__,
       url = __url__,
       packages = ['stem', 'stem.descriptor', 'stem.response',
 'stem.util'],
       cmdclass = {'build_py': build_py},
 )
 }}}

 It seems to work (I'm able to use stem via python 3 with the build
 output), but I haven't pushed this setup.py yet since I haven't tied in to
 stem's tests yet. I'd like to do that first to better validate the
 results...

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7244#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs