You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the time I ported psutil to python 3 ( issue 73 ) the recommended porting
strategy was to use 2to3.
As such, 2to3 is currently run for all the py files at installation time:
https://code.google.com/p/psutil/source/browse/tags/release-0.4.1/setup.py#19
Now that 2 years has passed I realize this is a poor strategy for different reasons:
- installation on python 3 is slower than on python 2 because of 2to3 run; not
too much but...
- if psutil is first installed with python 2 and then python 3, the second
installation fails if "build" directory is not removed first
- with python 3 it is not possible to use "python setup.py develop" because
2to3 is not run
With pyftpdlib I learned that maintaining a single code base which runs with
both python 2 and 3 is possible without too much effort and saves the trouble
of using 2to3: https://code.google.com/p/pyftpdlib/issues/detail?id=198#c15 The
same thing should be made for psutil.
From g.rodola on June 02, 2012 22:16:46
Original issue: http://code.google.com/p/psutil/issues/detail?id=274
The text was updated successfully, but these errors were encountered: