Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 3.53 KB

BUILDING.md

File metadata and controls

59 lines (46 loc) · 3.53 KB

DISCLAIMER

  • Program error reports tend to show the directory of the build location! So it will go C:/Users/[yourname]/... for example.

  • Building on Mac and Linux hasn't been tested yet so it might not work on those platforms.

Building Without Cython

Building without Cython will slow down the program a bit when it deals with anything LH related.

  1. You need to have at least Python 3.5, so make sure to install it and add it to PATH on Windows.
  2. Run the following command to install the required modules:
    pip install PyQt5 nsmblib https://github.com/pyinstaller/pyinstaller/archive/develop.zip
    
  3. In libs/__init__.py, change the line has_cython = True to has_cython = False.
  4. (Optional) You can change the version by editing the value of PROJECT_VERSION value in the file build_reggie.py and by editing the three ReggieVersion values in the file globals_.py.
  5. If you're in Windows, you can run the build_reggie.bat script. On other platforms, you have to run the following command in the folder build_reggie.bat is in: python -OO build_reggie.py

After the script finishes, the executable can be found in the distrib folder.

Building With Cython

Building with Cython will speed up the program a bit when it deals with anything LH related, but it's also more work to set up Cython when you're building Reggie Next.

  1. You need to use Python 3.7, so make sure to install it and add it to PATH on Windows.

  2. On that version, run this command to add the required modules. On Windows, you can replace python with py -3.7 to make sure the modules are installed on the right version.

    python -m pip install PyQt5 nsmblib Cython https://github.com/pyinstaller/pyinstaller/archive/develop.zip
    
  3. In libs/__init__.py, remove the lines:

    import pyximport
    pyximport.install()
    
    • On Windows: In the libs folder, run the compile.bat script. NOTE: The compile.bat script doesn't look for Python 3.7 specifically, so if nothing happens when ran, edit the script to use whichever version of Python you have has Cython installed.
    • On other OSes:
      1. Run this command in the libs folder directory and replace python with (the path to) the Python 3.7 executable:
        python compile.py build_ext --inplace
        
      2. Rename the created .so files in the new libs folder to correspond with their respective .pyx name (but don't change the extension).
  4. Delete the .pyx files, and other files and folders that were created in the previous step.

  5. (Optional) You can change the version by editing the value of PROJECT_VERSION in build_reggie.py and the three ReggieVersion values in globals_.py.

    • Windows: Run build_reggie.bat.
    • Other OSes: Run the following command in build_reggie.py's directory. Make sure python refers to Python 3.7.
      python -OO build_reggie.py
      

After the script finishes, the executable can be found in the distrib folder.