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.
(nombre_del_proyecto) $
  • Tambien si nos salimos de nuestro entorno virtual podemos volver a activarlo con el comando anterior
  1. Instalamos el modulo SQAlchemy
pipenv install sqlalchemy
  1. Instalamos el modulo de py2app
pipenv install py2app
  1. Iniciamos nuestra aplicacion
python src/app.py

Commands to create icon in MacOS

  1. Creamos el ejcutable para contruir nuestra aplicacion con "py2applet"
py2applet --make-setup LanguageDictionary.py resources/language-dictionary.icns
  1. Construimos nuestra aplicacion, para que cree nuestro archivo .app
python setup.py py2app
  1. Copiamos el contenido del codigo faltante siguiendo los siguientes pasos
a. Entramos a la carpeta "dist"
b. En la aplicacion creada damos clic en "Mostrar el contenido del paquete"
c. Copiamos la carpeta "src", en dentro de "/Contents/Resources"
Clone this wiki locally