GNU bug report logs -
#76211
Incomplete python-django-compressor package
Previous Next
Reported by: Evgeny Pisemsky <mail <at> pisemsky.site>
Date: Tue, 11 Feb 2025 19:13:02 UTC
Severity: normal
Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Thu, 17 Apr 2025 23:34:59 +0100
with message-id <87msce1koc.fsf <at> gmail.com>
and subject line Incomplete python-django-compressor package
has caused the debbugs.gnu.org bug report #76211,
regarding Incomplete python-django-compressor package
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
76211: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76211
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
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 build <at> 0.3.10...
/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
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 62 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.