GNU bug report logs - #76211
Incomplete python-django-compressor package

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Evgeny Pisemsky <mail@HIDDEN>; dated Tue, 11 Feb 2025 19:13:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'normal' from 'important' Request was from Evgeny Pisemsky <mail@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.

Message received at 76211-done <at> debbugs.gnu.org:


Received: (at 76211-done) by debbugs.gnu.org; 17 Apr 2025 22:35:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 17 18:35:13 2025
Received: from localhost ([127.0.0.1]:48800 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u5XpB-0005kd-7z
	for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 18:35:13 -0400
Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:51668)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <sharlatanus@HIDDEN>)
 id 1u5Xp7-0005f5-UV
 for 76211-done <at> debbugs.gnu.org; Thu, 17 Apr 2025 18:35:11 -0400
Received: by mail-wm1-x332.google.com with SMTP id
 5b1f17b1804b1-43d04ea9d9aso6547895e9.3
 for <76211-done <at> debbugs.gnu.org>; Thu, 17 Apr 2025 15:35:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1744929303; x=1745534103; darn=debbugs.gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=SK/gu1D4HahQFvGad0uktffkW7D863BfGB6q73Xd8qk=;
 b=LkEwQXdVfXNuTToxEo0myRLbYWVdTtqmitT9wZPNxcD3746fKTcKpkZOu30yoRTPSi
 5sLBsTw7ZrB2J92VxOgErAgoL3CFJTnHrfRc5aRBE4X32DsvXhpOk6umOoZRa0OmikiC
 0Y5CGo4c/YxtkafSf141g+NKlJJfWHfZgN03MJezJ/9KKK8ord9gODlcLDFGrswhOIrf
 WWlBZnCEmznOlZ79NZk/aeYL/7CkG4UxaakZ0P1QXhiTTJgPo7zX6E5UDcX7eGkUXMBr
 8oCwL6LLb6sMcnvAv/0WoQWf5ZLrnUsnetZ2FiKpyQxf5UuyDYLhJX5J5EgZLSk/fT63
 tqcQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1744929303; x=1745534103;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=SK/gu1D4HahQFvGad0uktffkW7D863BfGB6q73Xd8qk=;
 b=abq79XZu3ZHxL2Gi2M+29dvQioWmIAjAAT4AM18MW/CkAjHKqBE/ZkAJTYdt6MRRLz
 jY+UHN3OdMeEFoia7ntAYvJ3OuFmVWB49CY6UGvrw28gM16tuUdDbEAK/ux5cbK9VI9e
 /sKYovkL28bKg3bvkm/Ur9+AIG2nrjo0FnnrWGwhc4ddWPThfEAomPfSmgjUhF7wKLAd
 yyyk/uCeqnS+/sl/d+Dc/MRdaHsm4OBHi13VWvxndmQ5H2NjwNvRA9jeFwGgWQCPuNtF
 NntWF3km5F41BH4DMrzxatcAYrXV9y9xsfuaOCAE1PqaLc/G+pbsMjzXis/rO3BoGJMt
 bvcA==
X-Gm-Message-State: AOJu0YzX2t/RyhyRI2no4crG1T/tTPBZLlnl7KVegu3z7RcHLR9/Bnvr
 5DTtIXFvf00ppEG5Z3OGf+hurKmVJRm47anXLzRZrA/aUA7Vin16ozgREa5y
X-Gm-Gg: ASbGncslghFSpRyt2w2H+Qyr6LFOcOCjG0e7kLrX+WMZjTkDi1sSrRJBKRUCxYx0+6A
 Jt/jYdUjOoviEAQQ7HCgd5bmETktMdwtnwcb7e12ADjaEYX0HqeQH298Qwmztm89/41aSa9WL+T
 KUfsR6uKFSiXAWXqwKk3JaRWv2n+PpofR6q4wdtb/Z2cegC9X1oWHWTTNpmnGY9JX9iA2/4H7RD
 A6R8UD8oEMucBlBNNB15ZrgSfXEaVLy4BMVQE2bFQza6dWXzft8RlGhpPkwubGwxmQ9WapwgkRC
 WKKuijpQJEJo9zIoE9rdUzskZMDeJ4HrAOsgH9QdZ6RBNBkeqZ8pCe5OZQ8PrtfxGlKiNBktzSO
 5EBTTA7TLfJOfj52ABzzo89iJSiE=
X-Google-Smtp-Source: AGHT+IFX/xOqzoTx4WLwvJY+/7nPih+cTCv+jwdGvsg6DedBFNf453BqO/kMpQ7Ep9KJKCT4nfiNvg==
X-Received: by 2002:a05:600c:4f49:b0:43d:8ea:8d80 with SMTP id
 5b1f17b1804b1-4406ab81eb2mr4927005e9.5.1744929303282; 
 Thu, 17 Apr 2025 15:35:03 -0700 (PDT)
Received: from guxtil (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net.
 [86.8.111.200]) by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-4406abd4982sm5489135e9.9.2025.04.17.15.35.01
 for <76211-done <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 17 Apr 2025 15:35:02 -0700 (PDT)
From: Sharlatan Hellseher <sharlatanus@HIDDEN>
To: 76211-done <at> debbugs.gnu.org
Subject: Incomplete python-django-compressor package
Date: Thu, 17 Apr 2025 23:34:59 +0100
Message-ID: <87msce1koc.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 76211-done
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


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"

=2D-8<---------------cut here---------------start------------->8---
def find_package_data(
=2D-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 bui=
ld:

=2D-8<---------------cut here---------------start------------->8---
> ./pre-inst-env guix build -P1 build python-django-compressor
guix build: computing dependents of package build@HIDDEN
/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
=2D-8<---------------cut here---------------end--------------->8---

Templates dirrectory is present in the built package now:
=2D-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/
=E2=94=94=E2=94=80=E2=94=80 python3.10
    =E2=94=94=E2=94=80=E2=94=80 site-packages
        =E2=94=9C=E2=94=80=E2=94=80 compressor
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 contrib
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=
=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 filters
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=
=94=80 cssmin
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =
=E2=94=94=E2=94=80=E2=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=
=94=80 jsmin
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =
=E2=94=94=E2=94=80=E2=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=
=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 management
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=
=94=80 commands
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =
=E2=94=94=E2=94=80=E2=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=
=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 offline
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=
=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 parser
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=
=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 templates
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=
=94=80 compressor
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =
=E2=94=94=E2=94=80=E2=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=
=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 templatetags
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=
=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 tests
        =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=
=94=80 __pycache__
        =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 utils
        =E2=94=82=C2=A0=C2=A0     =E2=94=94=E2=94=80=E2=94=80 __pycache__
        =E2=94=94=E2=94=80=E2=94=80 django_compressor-4.5.1.dist-info

32 directories
=2D-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.

=2D-
Oleg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJKBAEBCgA0FiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmgBghMWHHNoYXJsYXRh
bnVzQGdtYWlsLmNvbQAKCRB21ye/9izStaS3D/0RE/fyH+BmiGByXOEh4YORdcta
aog/uItBPM0gXHRvD6QmyM7r1gIzZwFizuORqQpOUXbWIB4Z05YXovyveoJ+0jBK
BbrEZToGJblqXRcRqmBS1K0qlvVM+4WNkCFoWmg0ugGz/EUNwLIxLl8BeV95bC0T
IfG/BkohxZSc0NDZz0VHv2txMi4c7obVE/xi4xADRRTA4qzzoAK/HI6Q9zcDUnUX
XA/OU6rAPHT3Zg6Xi8NhjczrLor7kOPtlfjJN3noYUPfg/+hCF1syl7HjYfBAAyU
9CAjdE7imOEVrpaNBAbvST3J/udvE78KlWg8CmJizPGNwnxF/j+bTgnR23EOMZ16
4YomGuhEryYQHkWEPsszAIBzt3CJ9PXgdatTCLn86DFxWNsjqQbpgwlEZ+9y+0BZ
ruOqtqAsGXMUBxu7iQZ3Mm1CEGEKe5QsJ6fo1kiqnFN8JTjHuHmhtgfLHAmXHaPn
CNtqy/Gl4GMHrdPWjO58OsNyQJVdaSUVXwaNGcg//MbGTRq38ByWgyFkloUhcWU5
fNsu4XzzsCz3SVQ8zHlGUxmSm6F1bUQ/WbSll8q5+/cGoQUqIpxZlZEpUe2kXQe/
g0o1zqYLyuWcsKoWFANovsB8f8xQlAGWjRV4PI6vvUEKSXX9s3hUXq4llUnyQELN
QtilmGmxf333Pht7fw==
=ntlg
-----END PGP SIGNATURE-----
--=-=-=--




Notification sent to Evgeny Pisemsky <mail@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Sharlatan Hellseher <sharlatanus@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 76211 <at> debbugs.gnu.org:


Received: (at 76211) by debbugs.gnu.org; 2 Apr 2025 22:40:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 02 18:40:36 2025
Received: from localhost ([127.0.0.1]:59922 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u06l9-0007aH-Pu
	for submit <at> debbugs.gnu.org; Wed, 02 Apr 2025 18:40:36 -0400
Received: from pisemsky.site ([103.54.19.55]:46322)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mail@HIDDEN>)
 id 1u06l7-0007a2-DV
 for 76211 <at> debbugs.gnu.org; Wed, 02 Apr 2025 18:40:34 -0400
Received: from laptop (<unknown> [176.59.49.46])
 by pisemsky.site (OpenSMTPD) with ESMTPSA id b6e8af98
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Wed, 2 Apr 2025 22:40:28 +0000 (UTC)
From: Evgeny Pisemsky <mail@HIDDEN>
To: Danny Milosavljevic <dannym@HIDDEN>
Subject: Re: bug#76211: Incomplete python-django-compressor package
In-Reply-To: <87cye4eeau.fsf@HIDDEN> (Danny Milosavljevic's
 message of "Wed, 26 Mar 2025 03:06:17 +0100")
References: <87pljol2hv.fsf@HIDDEN>
 <87cye4eeau.fsf@HIDDEN>
Date: Thu, 03 Apr 2025 01:40:28 +0300
Message-ID: <875xjmjig3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76211
Cc: 76211 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi!

> It's interesting that for pip install, that does install templates.
> What setup.py command does that use?

This is what pip3 in virtualenv says:

#+begin_example
Using legacy 'setup.py install' for django-compressor, since package 'wheel' is not installed.
Installing collected packages: rjsmin, rcssmin, typing-extensions, sqlparse, asgiref, Django, django-appconf, django-compressor
  Running setup.py install for django-compressor ... done
#+end_example

Everything with pure python, i.e. =guix shell python --pure=.

> Which directory exactly does it put the templates in?

After =pip3 install .= from local source in virtualenv:

#+begin_example
env/lib/python3.10/site-packages/compressor/templates/
env/lib/python3.10/site-packages/compressor/templates/compressor
env/lib/python3.10/site-packages/compressor/templates/compressor/css_file.html
env/lib/python3.10/site-packages/compressor/templates/compressor/js_preload.html
env/lib/python3.10/site-packages/compressor/templates/compressor/css_preload.html
env/lib/python3.10/site-packages/compressor/templates/compressor/js_inline.html
env/lib/python3.10/site-packages/compressor/templates/compressor/js_file.html
env/lib/python3.10/site-packages/compressor/templates/compressor/css_inline.html
#+end_example

> Are the templates and other media required for using the package as part
> of a program as an end user--or only if you want to *develop* a new
> package that is using python-django-compressor?

Templates are definitely required in runtime. I have a guixified
django project that started throwing error after upgrade - that's how
I spotted this problem. I fixed it with copy-recursively in phases.

As for suggested solutions, the main problem here is that everything
works fine in "normal" python ecosystem, but not in guix build systems.




Information forwarded to bug-guix@HIDDEN:
bug#76211; Package guix. Full text available.

Message received at 76211 <at> debbugs.gnu.org:


Received: (at 76211) by debbugs.gnu.org; 26 Mar 2025 02:06:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 25 22:06:45 2025
Received: from localhost ([127.0.0.1]:40591 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1txGAG-00007v-PK
	for submit <at> debbugs.gnu.org; Tue, 25 Mar 2025 22:06:45 -0400
Received: from giant.ash.relay.mailchannels.net ([23.83.222.68]:2911)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dannym@HIDDEN>)
 id 1txGAB-00007f-BN
 for 76211 <at> debbugs.gnu.org; Tue, 25 Mar 2025 22:06:42 -0400
X-Sender-Id: dreamhost|x-authsender|dannym@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id C1DB41A3F9D;
 Wed, 26 Mar 2025 02:06:36 +0000 (UTC)
Received: from pdx1-sub0-mail-a308.dreamhost.com
 (trex-5.trex.outbound.svc.cluster.local [100.96.205.12])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 2F1551A4DD3;
 Wed, 26 Mar 2025 02:06:36 +0000 (UTC)
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1742954796; a=rsa-sha256;
 cv=none;
 b=cUVZIsJJe5Rytx0TbTFpLXvUG43nlIwQBYMS2XqBtvyQbPaWe9rrjm8StdfhzzXWhWDQne
 qA8NcdzXyGUFQaHSAGGA5hw33DDHDLYOdDmlSUGrPv9pcNhbGt+ZNBz83wUnswNtkGCdx0
 3r8PLKatSwC6gKU5hBa83sPUMPvVMNRqDsEXUjOvYrWi4NWoa/pe2z+44F7mwaPhxrNDEf
 Yz4RmZYpiHPJK40zm5d38a8sz3fm0N7b8LZmBTFHIMTcYRVd4BylZ5pRkeCrARlBdzJrnj
 EJ/pewmcVvGV+BCLhSbnXAY0m1XrSL5AHtBjdyEac0Oc0Ymce1V/obXO4tig3Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
 d=mailchannels.net; s=arc-2022; t=1742954796;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references:dkim-signature;
 bh=8jAqeFHCKpbiO3YKbZsrguYVAocEA1BnPQJI1muWiIU=;
 b=VEuZHC6aUyoSlokheVdcefCoG5UeEzRVuI6hb1e5GDpVdP/fQo8bW9K8UNxCm63mpo3BFj
 LDN66tC6+If3y/CqAXW5gEpFXGP4El75LinRPYZwJXZHM6jIToXpmqspnOpU1bYElTTmVL
 sXrojxm+nt3k1dpRo9KHQrgmcNIqhp67ly5u4zj2eZ51hwwXFblmHCCSKb2oBwEfLhhvci
 vbfypHDmfYrmlPpOEATSxgOUJBLhV4n9Neoxb3Cin2HXZY5tk10tk3a86r9L3LC256KKqN
 Tp4bBz+YFUD2EvoKFmsDrLqoE35cgMSz18Nu3NkPEaYeRSkJFxar9eTLoBsrwQ==
ARC-Authentication-Results: i=1; rspamd-6d47b56b5b-6ps76;
 auth=pass smtp.auth=dreamhost smtp.mailfrom=dannym@HIDDEN
X-Sender-Id: dreamhost|x-authsender|dannym@HIDDEN
X-MC-Relay: Neutral
X-MC-Copy: stored-urls
X-MailChannels-SenderId: dreamhost|x-authsender|dannym@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Well-Made-Bottle: 0c77b07b42a65cab_1742954796624_3540441333
X-MC-Loop-Signature: 1742954796624:2296948048
X-MC-Ingress-Time: 1742954796624
Received: from pdx1-sub0-mail-a308.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
 by 100.96.205.12 (trex/7.0.2); Wed, 26 Mar 2025 02:06:36 +0000
Received: from nova (84-115-228-15.cable.dynamic.surfer.at [84.115.228.15])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: dannym@HIDDEN)
 by pdx1-sub0-mail-a308.dreamhost.com (Postfix) with ESMTPSA id 4ZMqsR2STbzMy; 
 Tue, 25 Mar 2025 19:06:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=friendly-machines.com; s=dreamhost; t=1742954796;
 bh=8jAqeFHCKpbiO3YKbZsrguYVAocEA1BnPQJI1muWiIU=;
 h=From:To:Cc:Subject:Date:Content-Type;
 b=BmdnosPnkmEIGENxHAfKvhVCu7u26+rA1Kafiw3gxOJslBZYx/J4Br+FpLr0EaTEy
 JkwCz4YSuPmAcZGlvs6n51+pQDiDLmeokdqqmIRM1Z5TIsxHn3S2oKaN2WSsERUXbj
 L6FDbAbQYmT7nh02tSiSc7mn/ceTfpIiuxmqwQ5cCBdEpcy89BCyqEajrSS0VcZQrX
 AZLRAyQJFskkuufsMGALAm3xk6tGvJYZpEQuha1+9Krq6d3SdDq+lqW03EzdU+u2NI
 hjanFkZ8uUsjXaKsTvbOuA2ugUo3lnYGDFrZV8a0VslB21CNV4E0MWdO5oRgkYwqxU
 AH79hYBRqOBcQ==
From: Danny Milosavljevic <dannym@HIDDEN>
To: Evgeny Pisemsky <mail@HIDDEN>
Subject: Re: bug#76211: Incomplete python-django-compressor package
In-Reply-To: <87pljol2hv.fsf@HIDDEN> (Evgeny Pisemsky's message of
 "Tue, 11 Feb 2025 22:12:28 +0300")
References: <87pljol2hv.fsf@HIDDEN>
User-Agent: mu4e 1.12.9; emacs 29.4
Date: Wed, 26 Mar 2025 03:06:17 +0100
Message-ID: <87cye4eeau.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76211
Cc: 76211 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

MANIFEST.in contains a list of files that are not temp files.
It's basically a poor-man's version control staging.  When you invoke
"python3 setup.py sdist" (which creates a *source* distribution),
that will include all the files specified in MANIFEST.in .

As for what happens on installation (which is a different thing),
whether something is in MANIFEST.in or not shouldn't really change
anything by default (except when you set include_package_data--and
even then only in some cases).
It's interesting that for pip install, that does install templates.
What setup.py command does that use?
Which directory exactly does it put the templates in?

Are the templates and other media required for using the package as part
of a program as an end user--or only if you want to *develop* a new
package that is using python-django-compressor?

Depending on the answer to that, setup.py's include_package_data=True
could be useful.  See also <https://github.com/pypa/setuptools/issues/3732>.

Alternatively, setup.py's data_files could be set.  It would also be a
lot less opaque that way.

See <https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html>,
especially footnote 2 there.




Information forwarded to bug-guix@HIDDEN:
bug#76211; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from Evgeny Pisemsky <mail@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Feb 2025 19:12:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 11 14:12:53 2025
Received: from localhost ([127.0.0.1]:58632 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1thvgi-00033F-KX
	for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 14:12:52 -0500
Received: from lists.gnu.org ([2001:470:142::17]:51458)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mail@HIDDEN>)
 id 1thvgg-00032o-H4
 for submit <at> debbugs.gnu.org; Tue, 11 Feb 2025 14:12:50 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>)
 id 1thvgW-0000W6-GZ
 for bug-guix@HIDDEN; Tue, 11 Feb 2025 14:12:41 -0500
Received: from sofi-shared.hosting.energy ([2001:41d0:602:1f56::]
 helo=sofi.hosting.energy)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>)
 id 1thvgU-0004vs-Is
 for bug-guix@HIDDEN; Tue, 11 Feb 2025 14:12:40 -0500
Received: from [176.59.45.237] (helo=laptop)
 by sofi.hosting.energy with esmtpsa (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94)
 (envelope-from <mail@HIDDEN>) id 1thvgM-0005fQ-7r
 for bug-guix@HIDDEN; Tue, 11 Feb 2025 22:12:30 +0300
From: Evgeny Pisemsky <mail@HIDDEN>
To: bug-guix@HIDDEN
Subject: Incomplete python-django-compressor package
Date: Tue, 11 Feb 2025 22:12:28 +0300
Message-ID: <87pljol2hv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: permerror client-ip=2001:41d0:602:1f56::;
 envelope-from=mail@HIDDEN; helo=sofi.hosting.energy
X-Spam_score_int: -14
X-Spam_score: -1.5
X-Spam_bar: -
X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399,
 T_SPF_HELO_PERMERROR=0.01,
 T_SPF_PERMERROR=0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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.




Acknowledgement sent to Evgeny Pisemsky <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#76211; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 18 Apr 2025 17:45:05 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.