Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc/conf.py is included in the wheel generated from source #46

Closed
carlosal1015 opened this issue Jul 26, 2024 · 3 comments
Closed

doc/conf.py is included in the wheel generated from source #46

carlosal1015 opened this issue Jul 26, 2024 · 3 comments

Comments

@carlosal1015
Copy link

According to this project fatiando/pooch#423 (comment), the file is not intended to be installed over /usr/lib/python3.12/site-packages/doc/conf.py but on usr/lib/python3.12/site-packages/codepy.

I confirmed with the 2023.1 version pulled from Pypi and following this instructions and python 3.12.4.

@inducer
Copy link
Owner

inducer commented Jul 26, 2024

I cannot reproduce this with current git:

$ python -m build
[...]
Successfully built codepy-2019.1.tar.gz and codepy-2019.1-py3-none-any.whl

$ unzip -l dist/codepy-2019.1-py3-none-any.whl
Archive:  dist/codepy-2019.1-py3-none-any.whl
  Length      Date    Time    Name
---------  ---------- -----   ----
       40  2023-10-07 06:23   codepy/__init__.py
     5540  2024-07-18 13:07   codepy/bpl.py
     4545  2024-07-18 13:07   codepy/cuda.py
     5916  2024-07-18 13:07   codepy/elementwise.py
    16540  2024-07-18 13:07   codepy/jit.py
     5161  2024-07-18 13:07   codepy/libraries.py
    16323  2024-07-18 13:07   codepy/toolchain.py
     1469  2024-07-18 13:07   codepy/tools.py
      931  2023-10-07 06:23   codepy/include/codepy/bpl.hpp
     1091  2024-07-26 16:47   codepy-2019.1.dist-info/LICENSE
     2000  2024-07-26 16:47   codepy-2019.1.dist-info/METADATA
       91  2024-07-26 16:47   codepy-2019.1.dist-info/WHEEL
        7  2024-07-26 16:47   codepy-2019.1.dist-info/top_level.txt
     1058  2024-07-26 16:47   codepy-2019.1.dist-info/RECORD
---------                     -------
    60712                     14 files

The 2023.1 release on pypi does not have a wheel. And, to my understanding, tarballs can include doc/ subtrees with no harm. This may be a bug in Arch packaging.

@inducer inducer closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
@carlosal1015
Copy link
Author

With this hint sunpy/sunpy#7780 I can reproduce the error

$ python
Python 3.12.4 (main, Jun  7 2024, 06:33:07) [GCC 14.1.1 20240522] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from importlib.metadata import files
>>> set(f.parts[0] for f in files('codepy'))
{'test', 'codepy-2023.1.dist-info', 'codepy', 'examples', 'doc'}

@inducer
Copy link
Owner

inducer commented Aug 20, 2024

Again, it may be the packaging in Arch that may be at issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants