setup.py fails on macosx
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Fix Released
|
Critical
|
Stani | ||
0.2 |
Fix Released
|
Critical
|
Stani |
Bug Description
I downloaded Phatch 0.1.15 for my Mac (Leopard 10.5.7) and executed the command:
sudo python setup.py install
and was rewarded with the message:
"Sorry your platform is not yet supported."
I defeated him by changing phatch/
from
if sys.platform[:5] == 'linux' :
to
if ((sys.platform[:5] == 'linux') or (sys.platform[1:6] == 'arwin')) :
then tried again:
sudo python setup.py install
... stuff deleted ...
Installation finished! You can now run Phatch by typing 'phatch'
And indeed phatch runs as advertised.
----///----
I had to install wxPython for Leopard (wx 2.8 for python 2.5) and I'm providing this information as someone else may find this useful.
I following the sourceforge links from:
http://
to
http://
I downloaded and installed this:
wxPython2.
Changed in phatch: | |
milestone: | none → 0.2.1 |
Changed in phatch: | |
status: | Fix Committed → Fix Released |
I didn't feel comfortable enough to allow it for a Mac. But in this case would it not be better to use:
if not sys.platform. startswith( 'win')?