Skip to content

Exclude doc/ from wheel#423

Open
penguinpee wants to merge 2 commits into
fatiando:mainfrom
penguinpee:doc_dir
Open

Exclude doc/ from wheel#423
penguinpee wants to merge 2 commits into
fatiando:mainfrom
penguinpee:doc_dir

Conversation

@penguinpee

Copy link
Copy Markdown
Contributor

The automatic discovery adds doc/ to the wheel triggered by the
presence of conf.py in that directory.

The automatic discovery adds doc/ to the wheel triggered by the
presence of `conf.py` in that directory.
@penguinpee

Copy link
Copy Markdown
Contributor Author

Alternatively, disabling namespaces also works: find = {namespaces = false} instead of find {}.

@leouieda

Copy link
Copy Markdown
Member

Thanks for that @penguinpee. We're discussing changing our packaging practices to remove all of these from our built packages here: fatiando/community#154

@carlosal1015

Copy link
Copy Markdown

Here https://archlinux.org/packages/extra/any/python-pooch/files same error

error: failed to commit transaction (conflicting files)
python-pooch: /usr/lib/python3.12/site-packages/doc/conf.py exists in filesystem (owned by python-codepy)

@penguinpee

Copy link
Copy Markdown
Contributor Author

Here https://archlinux.org/packages/extra/any/python-pooch/files same error

error: failed to commit transaction (conflicting files)
python-pooch: /usr/lib/python3.12/site-packages/doc/conf.py exists in filesystem (owned by python-codepy)

In your case the file is already claimed by codepy. I looked at the sdist from PyPI and codepy is making the same mistake by using packages=find_namespace_packages() in setup.py, which adds doc as a top level module with conf.py in it.

That should be reported to codepy upstream. For now you could apply this PR as a patch to pooch allowing you to get on with the installation.

@carlosal1015

Copy link
Copy Markdown

I will do it, many thanks for the feedback.

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

Successfully merging this pull request may close these issues.

4 participants