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

Feature/exclude cythonized py files #1

Merged
merged 49 commits into from
Aug 15, 2024

Conversation

ClemensKubach
Copy link
Collaborator

Features:

  • options.include_all_compiled_src (default=True): toggle for including or excluding all source files from the build target after they were precompiled by cython (cythonized).
  • options.files.exclude_compiled_src: excluding selected source files from the build target after they were precompiled by cython (cythonized). This option is applied after options.include_all_compiled_src.
  • options.files.include_compiled_src: including selected source files from the build target after they were precompiled by cython (cythonized). This option is applied after options.files.exclude_compiled_src.
  • options.compiled_extensions_as_artifacts (default=True): Adding compiled extension files (.so, .pyd, .dll) to the artifacts for the wheel build target. To keep backward compatibility, set this option to false.
  • options.intermediate_extensions_as_artifacts (default=False): Adding intermediate extension files (.c, .cpp) to the artifacts for the wheel build target. To keep backward compatibility, set this option to true.

Changes and Fixes:

  • Clean (with e.g. on hatch clean) works now via absolute paths which fixes the issue with the clean command not working in some rare cases.
  • Clean now also removes generated intermediate files (.c, .cpp)
  • The list of artifacts is now a list of the specific files instead of general patterns, similar to hatch-mypyc artifacts.
  • All matches are now based on git-style glob patterns instead of using i mix of regex and glob patterns. This is now consistent with the rest of the hatch configuration.

@ClemensKubach ClemensKubach marked this pull request as ready for review August 15, 2024 18:36
@ClemensKubach ClemensKubach merged commit 88453bb into main Aug 15, 2024
@ClemensKubach ClemensKubach deleted the feature/exclude-cythonized-py-files branch August 16, 2024 18:29
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.

1 participant