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

Package demo scripts and data in sdists and wheels #408

Merged
merged 5 commits into from Nov 30, 2023

Conversation

jacklovell
Copy link
Member

@jacklovell jacklovell commented Feb 23, 2023

This enables users who haven't cloned the git repository to still run the demos. Use distutils/setuptools' support for data_files to achieve this.

Also remove MANIFEST.in and include_package_data=True, use setuptools' find_packages and package_data instead. This allows finer control over what gets packaged, and fixes a deprecation warning in recent setuptools versions (see
pypa/setuptools#3308 for details). It also prevents Cython-transpiled C source files being included in the wheel distribution, which roughly halves the size of the installed distribution.

This enables users who haven't cloned the git repository to still run
the demos.

A few unnecessary entries were removed from MANIFEST.in too. TODO: see
whether we can get rid of MANIFEST.in completely and use setuptools'
find_packages and package_data instead.
…ually

This allows finer control over what gets packaged, and fixes a
deprecation warning in recent setuptools versions (see
pypa/setuptools#3308 for detais).
It also prevents Cython-transpiled C source files being included in
the wheel distribution, which roughly halves the size of the installed
distribution.
@jacklovell jacklovell marked this pull request as ready for review February 27, 2023 10:07
Copy link
Member

@vsnever vsnever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @jacklovell. I've checked that it works on Mac as well. On Mac, the demos are installed in Library/Python/3.xx/share instead of .local/share.

@jacklovell jacklovell merged commit def6d5f into development Nov 30, 2023
16 checks passed
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.

None yet

2 participants