Skip to content

Commit

Permalink
MAINT: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Hörmann committed Nov 6, 2024
1 parent 9cdc01c commit 2413e78
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 46 deletions.
43 changes: 0 additions & 43 deletions pyinstaller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,3 @@
* `MANIFEST.(linux|windows|macos)-release` - files included in systems-pecific release
* `hooks` - custom build-time hooks for pyinstaller
* `rthooks` - custom run-time hooks for pyinstaller

## Windows bundle

* `mingw64_pacman_S.txt` contains unpinned `mingw64` packages to install for building and bundling the app with `mingw64`.
Packages may be installed with `pacman -S $(cat mingw64_pacman_S.txt | xargs)`.
* `mingw64_pacman_Q.txt` contains the latest `mingw64` package list the app has been successfully bundled with
output with `pacman -Q`.
* `mingw64_requirements.in` contains the unpinned Python packages to install system-wide with `mingw64`.
* `mingw64_requirements.txt` contains the latest Python packages the app has been built with.
Can be generated with `pip-compile --upgrade mingw64_requirements.in > mingw64_requirements.txt`.
* `mingw64_venv_pip_freeze.txt` contains the output of `pip freeze` right before building the app.
* `mingw64_venv_pip_freeze_local.txt` contains the output of `pip freeze --local` right before building the app.

The typical workflow for building and bundling the app with `mingw64` while updating the version reference files looks like this:

```bash
pacman -S $(cat pyinstaller/mingw64_pacman_S.txt | xargs)
python -m pip install --upgrade pip

pip-compile --upgrade pyinstaller/mingw64_requirements.in --output-file pyinstaller/mingw64_full_requirements.txt

python maintenance/extract_toplevel_requirements.py

pip install -r pyinstaller/mingw64_requirements.txt

pip install PyInstaller

python -m venv --system-site-packages venv
source venv/bin/activate
python -m pip install --upgrade pip

pip install --ignore-installed six

pip install pipdeptree

pip freeze --local | tee pyinstaller/mingw64_venv_pip_freeze_local.txt
pip freeze | tee pyinstaller/mingw64_venv_pip_freeze.txt

pipdeptree | tee pyinstaller/mingw64_venv_pipdeptree.txt
cd dtool_lookup_gui && glib-compile-schemas . && cd ..

python -m PyInstaller -y ./pyinstaller/dtool-lookup-gui-windows-one-file.spec
```
3 changes: 0 additions & 3 deletions pyinstaller/run.sh

This file was deleted.

45 changes: 45 additions & 0 deletions pyinstaller/win/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Pyinstaller files

## Windows bundle

* `mingw64_pacman_S.txt` contains unpinned `mingw64` packages to install for building and bundling the app with `mingw64`.
Packages may be installed with `pacman -S $(cat mingw64_pacman_S.txt | xargs)`.
* `mingw64_pacman_Q.txt` contains the latest `mingw64` package list the app has been successfully bundled with
output with `pacman -Q`.
* `requirements.in` contains the unpinned Python packages to install system-wide with `mingw64`.
* `requirements.txt` contains the latest Python packages the app has been built with.
Can be generated with `pip-compile --upgrade mingw64_requirements.in > mingw64_requirements.txt`.
* `mingw64_venv_pip_freeze.txt` contains the output of `pip freeze` right before building the app.
* `mingw64_venv_pip_freeze_local.txt` contains the output of `pip freeze --local` right before building the app.

The typical workflow for building and bundling the app with `mingw64` while updating the version reference files looks like this:

```bash
pacman -S $(cat pyinstaller/win/mingw64_pacman_S.txt | xargs)
python -m pip install --upgrade pip

pip-compile --upgrade pyinstaller/win/requirements.in --output-file pyinstaller/win/full_requirements.txt

python maintenance/extract_toplevel_requirements.py

pip install -r pyinstaller/win/requirements.txt

pip install PyInstaller

python -m venv --system-site-packages venv
source venv/bin/activate
python -m pip install --upgrade pip

pip install --ignore-installed six

pip install pipdeptree

pip freeze --local | tee
pyinstaller/win/mingw64_venv_pip_freeze_local.txt
pip freeze | tee pyinstaller/win/mingw64_venv_pip_freeze.txt

pipdeptree | tee pyinstaller/win/mingw64_venv_pipdeptree.txt
cd dtool_lookup_gui && glib-compile-schemas . && cd ..

python -m PyInstaller -y ./pyinstaller/win/dtool-lookup-gui-windows-one-file.spec
```
File renamed without changes.
File renamed without changes.

0 comments on commit 2413e78

Please sign in to comment.