Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
[Fixes] update PYTHONOPTIMIZE due to pyinstaller/pyinstaller#6345 (No…
Browse files Browse the repository at this point in the history
…t sure why it didn't cause problems before tbh)
  • Loading branch information
Drapersniper committed Feb 1, 2022
1 parent 902bf79 commit d05a965
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
python -m pip install -r requirements.dev.txt
- name: Run PyInstaller
env:
PYTHONOPTIMIZE: 2 # Enable optimizations as if the -O flag is given.
PYTHONOPTIMIZE: 1 # Enable optimizations as if the -O flag is given.
PYTHONHASHSEED: 42 # Try to ensure deterministic results.
PYTHONUNBUFFERED: 1
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ jobs:
python -m pip install -r requirements.dev.txt
- name: Run PyInstaller
env:
PYTHONOPTIMIZE: 2 # Enable optimizations as if the -O flag is given.
PYTHONOPTIMIZE: 1 # Enable optimizations as if the -O flag is given.
PYTHONHASHSEED: 42 # Try to ensure deterministic results.
PYTHONUNBUFFERED: 1
run: |
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LABEL Version="2.3.4"
ENV QBITRR_DOCKER_RUNNING=69420
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONOPTIMIZE=1

RUN pip install --quiet -U pip wheel
WORKDIR /app
Expand Down

0 comments on commit d05a965

Please sign in to comment.