-
Notifications
You must be signed in to change notification settings - Fork 47
For Developers: Installing and Running Openroast
Windows and Mac end-users will want to stick to the installer packages posted in releases section, rather than have to work through the information on this page.
Running Openroast from source is possible in Linux as well as in Windows and OS X. Setup varies by platform.
It is assumed that the reader is familiar with python, git, and shell scripting. If these terms aren't familiar to you, we suggest that you learn the basics of python and git source code control before reading any further.
For Windows 10, setting up to run Openroast from source involves running partway through the Windows build script. The build script installs all necessary tooling, including Python 3.5. If you already have another version of Python installed, the build script will not discriminate between installed Python versions. It is up to the reader to determine how to ensure that Openroast is developed and executed in a Python 3.5 environment. (The author runs a bare Win10 installation in a VirtualBox VM for this purpose.)
- Start from a bare Win10 machine, and follow all the Windows build instructions posted in For Developers: Building a Distributable Package. At the end of that process, you will have set yourself to build the app correctly.
- In a terminal window,
cd [your_folder]\Openroast
. - At this point, to run Openroast, all you should need to do is type
python openroast\openroastapp.py
and the app should run.
Note that if you have more than one version of Python installed on your machine, you'll need to specify python 3.5 during requirements installs and when running openroast/openroastapp.py
.
- Using git, clone or fork this project to the folder of your choice.
- Start a PowerShell terminal, making sure you can execute unsigned local scripts. You'll want to launch PowerShell as administrator, as well.
-
cd [your_folder]\Openroast
. -
.\build_win.ps1 -tool_install
. This will install Python 3.5, Git for Windows, and NSIS 3.0. If you do not want some of these installed, modify the script accordingly. -
.\build_win.ps1 -python_build_tool_install
. This installs both Openroast's python package dependencies, as well as the python-based build tool dependencies. (You canpip install -r
these instead, there are two requirements.txt files in the root folder that specify the dependencies.) - At this point, to run Openroast, all you should need to do is type
python openroast\openroastapp.py
and the app should run.
Note that if you have more than one version of Python installed on your machine, you'll need to specify python 3.5 during requirements installs and when running openroast/openroastapp.py
.
For Mac OS X, setting up to run Openroast from source involves running partway through the Mac build script. The build script installs all necessary tooling, including Python 3.5. The build script also installs pyenv and sets the python version for the folder to 3.5, so to make your life easier, you really should take advantage of the build script to set up your system to run from source.
- Follow all the Mac build instructions posted in For Developers: Building a Distributable Package. At the end of that process, you will have set yourself to build the app correctly.
- In a Terminal window,
cd [your_folder]/Openroast
. - At this point, to run Openroast, all you should need to do is type
python openroast/openroastapp.py
and the app should run.
This is the maintainer's primary setup. There should be equivalent means of setting up Openroast in other Linux variants, but they are not documented at this time.
[TODO]