-
Notifications
You must be signed in to change notification settings - Fork 0
Home
tarantulaman edited this page Aug 31, 2023
·
8 revisions
-
To build this project we must have Python 3.8 installed.
-
We must have installed "pip 3" of "python 3", according to the operating system where we are.
-
We must have installed "pipenv" of "python 3", according to the operating system where we are.
-
This project is created with the ORM SQAlchemy
-
To start our project we execute the commands in section Commands used
-
We are going to execute the following commands inside the folder of our project
-
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
- Instalamos el modulo SQAlchemy
pipenv install sqlalchemy
- Instalamos el modulo de py2app
pipenv install py2app
- Iniciamos nuestra aplicacion
python src/app.py
- Creamos el ejcutable para contruir nuestra aplicacion con "py2applet"
py2applet --make-setup LanguageDictionary.py resources/language-dictionary.icns
- Construimos nuestra aplicacion, para que cree nuestro archivo .app
python setup.py py2app
- 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"