Skip to content
Lavínia Beghini edited this page Dec 2, 2020 · 1 revision

Development Environment

Inside the project directory, create a virtual environment (venv)

At the cmd, type:

python -m venv ./venv

After that you should see a venv directory.

To run commands using venv, go to Scripts directory inside venv:

project
│   main.py
│   ...
└─── venv
     └─── Scripts
         │   activate

To use the virtual environment, run:

activate

Then, using the virtual environment, install the project requirements:

pip install -r requirements.txt

That will prevent you to install the libs in the local computer, and it will be available only on the project scope.

Editing

Whenever you install a new library, you need to update the requirements.txt file.

At the cmd, run:

pip freeze > requirements.txt

Running

venv:

To see the project running, inside the virtual environment at cmd, run:

python main.py

Release:

This project provides a release where you cand download the dist.rar, that includes a file main.exe.

Build

To compile to an .exe , run in the venv environment:

python setup.py py2exe

That will generate a dist directory inside the project folder, with an main.exe inside of it.