Skip to content

Setup pre-compiled binaries for different platforms [Enhancement] #12

Description

@jfmherokiller

I was wondering if you had any plans for say pre-made binaries that the user could just download and run?

I locally setup a setup a working singlefile py2exe setup.py (using 32bit 2.7 python) and I edited main.py to correctly support the difference in the zip below.
LSL-PyOptimizer.zip

the specifics of the change to main.py are here

def main(argv):
    """Main executable."""
+    import os
+
+    if hasattr(sys,"frozen") and sys.frozen in ("windows_exe", "console_exe"):
+       lslopt.lslcommon.DataPath=(os.path.dirname(os.path.abspath(sys.executable)) + os.sep)
+   else:
    # If it's good to append the basename to it, it's good to append the
    # auxiliary files' names to it, which should be located where this file is.
        lslopt.lslcommon.DataPath = __file__[:-len(os.path.basename(__file__))]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions