Closed mogui closed 12 years ago
I've fixed an osx specific import on setup.py that could cause harm on Windows,
regarding the import on run.py they are wrapped in an if at the top of the file and not in the main_darwin func because these lines MUST be on top and before import reactor
from twisted.internet import _threadedselect
_threadedselect.install()
they are lines needed to run the twisted reactor inside the PyObjC Cocoa GUI loop so it's impossible to move them, don't know if there is a better way to prevent run.py to be a huge if maybe we can split it in 3 files and separate shared logic, and os specific logic run.py, _rundarwin.py, _runwin32.py or something similar
This changes makes apaf build a status bar menu on os c with two item "quit" & "Open admin interface" it's a draft some variable things has to be inserted in the configuration
it's attached also a .sh file to setup a virtual env with all dependencies to build under OS X (lion too)
mainly changes: install python modules
and new build command:
python setup.py py2app osx_patch
osx_patch fix the lion bug
Hope to not have broken the Windows flow missing some conditional :P