Skip to content

Commit

Permalink
Fixing order of build
Browse files Browse the repository at this point in the history
  • Loading branch information
cfcurtis committed Jun 18, 2024
1 parent d51886e commit 49353fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,11 @@ jobs:
libtiff-dev \
libwebkit2gtk-4.0-dev \
libxtst-dev
- name: Copy resources directory
# PyPi needs to have resources in the same directory as the package
run: cp -r resources pdfstitcher/resources
- name: Compile translation files and build distribution
run: |
python3 build/update_loc.py --compile
cp -r resources pdfstitcher/resources
pip3 install build
python3 -m build
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
from pathlib import Path
from setuptools import setup
from setuptools.command.install import install
from setuptools.command.develop import develop
Expand All @@ -9,6 +10,10 @@ def run_compile(cmdclass):
# Shamelessly copied from https://stackoverflow.com/a/41120180
compiler = compile_catalog(cmdclass.distribution)
compiler.directory = "resources/locale"
compiler.directory = "pdfstitcher/resources/locale"
if not Path(compiler.directory).exists():
print("warning: no locale directory found, only English will be available.")
return
compiler.domain = ["pdfstitcher"]
compiler.run()

Expand Down

0 comments on commit 49353fc

Please sign in to comment.