Skip to content
tarantulaman edited this page Aug 31, 2023 · 8 revisions

Important

  1. To build this project we must have Python 3.8 installed.

  2. We must have installed "pip 3" of "python 3", according to the operating system where we are.

  3. We must have installed "pipenv" of "python 3", according to the operating system where we are.

  4. This project is created with the ORM SQAlchemy

  5. To start our project we execute the commands in section Commands used


Commands used

  1. We are going to execute the following commands inside the folder of our project

  2. We create and activate our pipenv environment, inside the directory directory of our project using the following command

pipenv shell
  • If pipenv has been activated, it should show us as follows the path to our project and it will create a file called Pipfile.
(project_name)$
  • Also if we exit our virtual environment we can to re-activate it with the previous command.
  1. Installing the SQAlchemy module
pipenv install sqlalchemy
  1. Installing the py2app module
pipenv install py2app
  1. We start the application
python src/app.py

Commands to create icon in MacOS

  1. We create the executable to build our application with py2applet.
py2applet --make-setup LanguageDictionary.py resources/language-dictionary.icns
  1. We build the application, so that it creates the .app file
python setup.py py2app
  1. Copy the contents of the missing code by following these steps
a. Enter the "dist" folder
b. In the created application we click on "Show package contents"
c. Copy the "src" folder, inside "/Contents/Resources"
Clone this wiki locally