Skip to content

Commit

Permalink
Removed file generated at runtime from the data files collected
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliyobo committed Sep 29, 2024
1 parent 6a78b80 commit 2ac222e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions scripts/builder/Bookworm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ from pathlib import Path
import site

from PyInstaller.utils.hooks import collect_data_files, collect_submodules
import pyxpdf_data
pyxpdf_data.get_xpdfrc_path()


# Data files
Expand All @@ -30,12 +28,10 @@ root = Path("../../")
# pyxpdff_data searches for a file named default.xpdf in the site-packages directory
# We need to also include this as a data file
# TODO: Find a way to move this operation under pyxpdf_data
default_xpdf = Path(site.getsitepackages()[1]) / "default.xpdf"
DATA_FILES = [
(f"{root / 'alembic/env.py'}", 'alembic'),
(f"{root / 'alembic/versions/*'}", 'alembic/versions'),
(f"{root / 'alembic.ini'}", '.'),
(f"{default_xpdf}", "lib/site-packages"),
]
DATA_FILES += [
(
Expand Down
4 changes: 0 additions & 4 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,6 @@ def make_version_info_file(c):
@make_env
def freeze(c):
"""Freeze the app using pyinstaller."""
import site
path = Path(site.getsitepackages()[1], "default.xpdf").absolute()
os.environ["PYXPDF_RC_PATH"] = str(path)


from bookworm import app

Expand Down

0 comments on commit 2ac222e

Please sign in to comment.