Because Python is notorious for being difficult to maintain a clean installation of, I recommend developing either in a Python virtualenv or in an actual virtual machine.
apt-get installany system dependencies requried by CoilSnake. These are listed in the official CoilSnake installation instructions.sudo pip install virtualenvvirtualenv CoilSnake_virtualenv --no-site-packagessource CoilSnake_virtualenv/bin/activate
- The above command sets up your CoilSnake virtual development environment. When you open a new terminal for CoilSnake development, always re-run the above command in order to re-enter the virtual development environment. For more information about how this works, see virtualenv's documentation.
git clone --recursive https://github.com/mrtenda/CoilSnake.gitcd CoilSnakemakepython setup.py develop
CoilSnake is now installed in development mode in its own virtualenv, so it does not interfere with other parts of your system. After making code changes to the source, run your code by launching CoilSnake's GUI or CLI:
python script/gui.py
# or...
python script/cli.py
git clone --recursive https://github.com/mrtenda/CoilSnake.gitcd CoilSnakevagrant up ubuntuvagrant ssh ubuntucd /vagrantsudo python setup.py develop
CoilSnake is now installed in development mode on the virtual machine. After making code changes to the source, you can test it by running CoilSnake's CLI interface.
python script/cli.py
Please note that the included Vagrant configuration does not run a GUI, meaning that you won't be able to test CoilSnake's GUI with it.
- Install:
- Python 3.6 (64-bit version)
- Visual C++ 2015 Build Tools
- PyYAML
- If using Python 3.6, download unoffical wheels here
pip install PyYAML-3.12-cp36-cp36m-win_amd64.whl
- Using your favorite git client, clone the CoilSnake repository.
- If the
coilsnake\assets\mobile-sproutdirectory is empty, clone the mobile-sprout repository and copy its contents to thecoilsnake\assets\mobile-sproutdirectory.
- If the
- Open the command line and cd to your local CoilSnake git repository's main directory.
python setup.py develop
CoilSnake is now installed in development mode. After making code changes to the source, run your code by launching CoilSnake's GUI:
python .\script\gui.py
You'll probably want to follow these steps from a fresh virtual machine. You can start up a new Windows 7 VM by the following command: vagrant up windows
- Install:
- Python 3.6 (64-bit version)
- Visual C++ 2015 Build Tools
- NSIS 3.x
- PyYAML
- If using Python 3.6, download unoffical wheels here
pip install PyYAML-3.12-cp36-cp36m-win_amd64.whl
- cx_freeze
pip install cx_Freeze
- Using your favorite git client, clone the CoilSnake repository.
- If the
coilsnake\assets\mobile-sproutdirectory is empty, clone the mobile-sprout repository and copy its contents to thecoilsnake\assets\mobile-sproutdirectory.
- If the
- Open the command line and cd to your local CoilSnake git repository's main directory.
- Ensure CoilSnake dependencies are installed in a non-compressed form using pip (cx_freeze doesn't work well with compressed eggs)
pip install --process-dependency-links .
- Create the CoilSnake EXE
python setup.py developpython setup_exe.py build_exe
- Run
coilsnake.nsi