diff --git a/CHANGELOG b/CHANGELOG index 33314a4..5485bda 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -30,4 +30,5 @@ - Added support for dates 0.6 -- Fixes to run on Mac OsX \ No newline at end of file +- Fixes to run on Mac OsX +- Added Makefile \ No newline at end of file diff --git a/mac/Info.plist b/mac/Info.plist new file mode 100644 index 0000000..48dee6f --- /dev/null +++ b/mac/Info.plist @@ -0,0 +1,35 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleDocumentTypes + + + CFBundleTypeOSTypes + + **** + fold + disk + + CFBundleTypeRole + Viewer + + + CFBundleExecutable + relational + CFBundleIconFile + PythonApplet.icns + CFBundleIdentifier + relational + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + relational + CFBundlePackageType + APPL + CFBundleSignature + ???? + + diff --git a/mac/PkgInfo b/mac/PkgInfo new file mode 100644 index 0000000..bd04210 --- /dev/null +++ b/mac/PkgInfo @@ -0,0 +1 @@ +APPL???? \ No newline at end of file diff --git a/mac/Python b/mac/Python new file mode 100755 index 0000000..d8c1a9a Binary files /dev/null and b/mac/Python differ diff --git a/mac/PythonApplet.icns b/mac/PythonApplet.icns new file mode 100644 index 0000000..ffe7ef0 Binary files /dev/null and b/mac/PythonApplet.icns differ diff --git a/mac/__argvemulator_relational.py b/mac/__argvemulator_relational.py new file mode 100644 index 0000000..aa8d43d --- /dev/null +++ b/mac/__argvemulator_relational.py @@ -0,0 +1,4 @@ +import argvemulator, os + +argvemulator.ArgvCollector().mainloop() +execfile(os.path.join(os.path.split(__file__)[0], "relational.py")) diff --git a/mac/relational b/mac/relational new file mode 100755 index 0000000..79f3c05 --- /dev/null +++ b/mac/relational @@ -0,0 +1,23 @@ +#!/Developer/Applications/Utilities/MacPython-2.3/BuildApplet.app/Contents/MacOS/Python + +import sys, os +execdir = os.path.dirname(sys.argv[0]) +executable = os.path.join(execdir, "Python") +resdir = os.path.join(os.path.dirname(execdir), "Resources") +libdir = os.path.join(os.path.dirname(execdir), "Frameworks") +mainprogram = os.path.join(resdir, "__argvemulator_relational.py") + +sys.argv.insert(1, mainprogram) +if 0 or 0: + os.environ["PYTHONPATH"] = resdir + if 0: + os.environ["PYTHONHOME"] = resdir +else: + pypath = os.getenv("PYTHONPATH", "") + if pypath: + pypath = ":" + pypath + os.environ["PYTHONPATH"] = resdir + pypath +os.environ["PYTHONEXECUTABLE"] = executable +os.environ["DYLD_LIBRARY_PATH"] = libdir +os.environ["DYLD_FRAMEWORK_PATH"] = libdir +os.execve(executable, sys.argv, os.environ) diff --git a/relational.py b/relational.py index 5c7de8c..6be4312 100755 --- a/relational.py +++ b/relational.py @@ -24,7 +24,7 @@ import parser import relation import maingui -version="0.5" +version="0.6" if __name__ == "__main__": app = QtGui.QApplication(sys.argv)