Subject: bug#76211: closed (Incomplete python-django-compressor package)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 17 Apr 2025 22:36:06 +0000

Your bug report

#76211: Incomplete python-django-compressor package

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
76211: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76211
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Incomplete python-django-compressor package
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Thu, 17 Apr 2025 23:34:59 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Thanks for reporting this.

I could investigate it and find the root of that problem, and it was a
custom function detecting which files need to be copied to "build"

--8<---------------cut here---------------start------------->8---
def find_package_data(
--8<---------------cut here---------------end--------------->8---
<https://github.com/django-compressor/django-compressor/blob/4.5.1/setup.py#L51C1-L52C1>

As package has no many dependent I could push it to master, after local build:

--8<---------------cut here---------------start------------->8---
> ./pre-inst-env guix build -P1 build python-django-compressor
guix build: computing dependents of package [email-masked]...
/gnu/store/r5k54f35gdqrkwzdg5xp4433wwpg0ps4-build-0.3.10
/gnu/store/vimdx5lvf453591rc8d2f802nz32nx4j-cli-1.1.0
/gnu/store/mcp3d7jiljl6s63vwf0dqn99mv4sg0g4-xsd-4.0.0-doc
/gnu/store/lgpqmp9hjlva9cgxvm2x420jd8nwl4h5-xsd-4.0.0
/gnu/store/wrh3k5cwvp8dcx40bkd6583zrhd5w0w8-libxsd-frontend-2.0.0
/gnu/store/v0hdy25fxh6kpmjx90p0zsarncm5hq0n-python-django-compressor-4.5.1
--8<---------------cut here---------------end--------------->8---

Templates dirrectory is present in the built package now:
--8<---------------cut here---------------start------------->8---
> tree -d $(./pre-inst-env guix build python-django-compressor)/lib/
/gnu/store/v0hdy25fxh6kpmjx90p0zsarncm5hq0n-python-django-compressor-4.5.1/lib/
└── python3.10
    └── site-packages
        ├── compressor
        │   ├── contrib
        │   │   └── __pycache__
        │   ├── filters
        │   │   ├── cssmin
        │   │   │   └── __pycache__
        │   │   ├── jsmin
        │   │   │   └── __pycache__
        │   │   └── __pycache__
        │   ├── management
        │   │   ├── commands
        │   │   │   └── __pycache__
        │   │   └── __pycache__
        │   ├── offline
        │   │   └── __pycache__
        │   ├── parser
        │   │   └── __pycache__
        │   ├── __pycache__
        │   ├── templates
        │   │   ├── compressor
        │   │   │   └── __pycache__
        │   │   └── __pycache__
        │   ├── templatetags
        │   │   └── __pycache__
        │   ├── tests
        │   │   └── __pycache__
        │   └── utils
        │       └── __pycache__
        └── django_compressor-4.5.1.dist-info

32 directories
--8<---------------cut here---------------end--------------->8---

Pushed fixes to master as:
0879cb6f66 * master gnu: python-django-compressor: Fix Python package data.
8335f7b441 * gnu: python-django-compressor: Fix indentation.

--
Oleg

Subject: Incomplete python-django-compressor package
From: Evgeny Pisemsky <[email-masked]>
To: [email-masked]
Date: Tue, 11 Feb 2025 22:12:28 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

For some reason installed package lacks templates and other media
files listed in the source's MANIFEST.in, which makes it unusable.

Tests can't prove it because they are run in the source directory.

Manual install from source into venv with =pip install .= works as
expected, so this could be a bug in python/pyproject build system.