Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix build to avoid duplicate files in wheel #402

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

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented May 2, 2022

Fix the build system to package pure Python files
via distutils/setuptools, and limit CMake to installing the compiled
extension.

The prior logic has installed some of the .py files both via setuptools
and via CMake, to different build directories. As a result,
the resulting wheel contained duplicate files, e.g.:

     2170  05-02-2022 07:08   symengine/__init__.py
     2170  05-02-2022 07:08   symengine-0.9.2.data/purelib/symengine/__init__.py

Duplicate files cause the wheel to be rejected by the installer package.

After the change, a correct wheel is generated. Installation works
both via PEP517/wheel and via legacy setup.py install.

Fix the build system to package pure Python files
via distutils/setuptools, and limit CMake to installing the compiled
extension.

The prior logic has installed some of the .py files both via setuptools
and via CMake, to different build directories.  As a result,
the resulting wheel contained duplicate files, e.g.:

         2170  05-02-2022 07:08   symengine/__init__.py
         2170  05-02-2022 07:08   symengine-0.9.2.data/purelib/symengine/__init__.py

Duplicate files cause the wheel to be rejected by the installer package.

After the change, a correct wheel is generated.  Installation works
both via PEP517/wheel and via legacy `setup.py install`.
@isuruf isuruf added this to the 0.10.0 milestone Jun 25, 2022
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.

2 participants