Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Python
Modules
cython
Commits
4a4a89917943
Commit
4a4a89917943
authored
5 years ago
by
da-woods
Browse files
Options
Downloads
Patches
Plain Diff
Document version-tagged pxd files (GH-3587)
parent
77b506dc4957
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/src/userguide/sharing_declarations.rst
+19
-0
19 additions, 0 deletions
docs/src/userguide/sharing_declarations.rst
with
19 additions
and
0 deletions
docs/src/userguide/sharing_declarations.rst
+
19
−
0
View file @
4a4a8991
...
@@ -226,3 +226,22 @@
...
@@ -226,3 +226,22 @@
``egg`` file which will not work with ``cimport`` for ``pxd`` files
``egg`` file which will not work with ``cimport`` for ``pxd`` files
when you try to use them from a dependent package.
when you try to use them from a dependent package.
To prevent this, include ``zip_safe=False`` in the arguments to ``setup()``.
To prevent this, include ``zip_safe=False`` in the arguments to ``setup()``.
Versioning
==========
``.pxd`` files can be labelled with a minimum Cython version as part of
their file name, similar to the version tagging of ``.so`` files in PEP 3149.
For example a file called :file:`Shrubbing.cython-30.pxd` will only be
found by ``cimport Shrubbing`` on Cython 3.0 and higher. Cython will use the
file tagged with the highest compatible version number.
Note that versioned files that are distributed across different directories
will not be found. Only the first directory in the Python module search
path in which a matching ``.pxd`` file is found will be considered.
The purpose of this feature is to allow third-party packages to release
Cython interfaces to their packages that take advantage of the latest Cython
features while not breaking compatibility for users with older versions of Cython.
Users intending to use ``.pxd`` files solely within their own project
need not produce these tagged files.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment