Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
00305bd3
Commit
00305bd3
authored
Aug 27, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: pyximport actually all output files into the build directory, not just the .so.
parent
0da7a1d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
docs/src/userguide/source_files_and_compilation.rst
docs/src/userguide/source_files_and_compilation.rst
+2
-17
No files found.
docs/src/userguide/source_files_and_compilation.rst
View file @
00305bd3
...
@@ -143,22 +143,7 @@ Note that this will generate a new module filename for each build and thus
...
@@ -143,22 +143,7 @@ Note that this will generate a new module filename for each build and thus
end up loading multiple shared libraries into memory over time. CPython does
end up loading multiple shared libraries into memory over time. CPython does
not support reloading shared libraries as such.
not support reloading shared libraries as such.
Pyximport puts your ``.c`` file beside your ``.pyx`` file (analogous to
Pyximport puts both your ``.c`` file and the platform-specific binary into
``.pyc`` beside ``.py``), but, by default, puts the platform-specific
a separate build directory, usually ``$HOME/.pyxblx/``. To copy it back
binary in a build directory as per normal for Distutils. To copy it back
into the package hierarchy (usually next to the source file) for manual
into the package hierarchy (usually next to the source file) for manual
reuse, you can pass the option ``inplace=True``.
reuse, you can pass the option ``inplace=True``.
For further thought and discussion
------------------------------------
``setup.py install`` does not modify :file:`sitecustomize.py` for you and
probably should never do that. Modifying Python's "standard interpreter"
behaviour may be more than most people expect of a package they install.
Pyximport puts your ``.c`` file beside your ``.pyx`` file (analogous to
``.pyc`` beside ``.py``). But it puts the platform-specific binary in a
build directory as per normal for Distutils. If I could wave a magic
wand and get Cython or distutils or whoever to put the build directory I
might do it but not necessarily: having it at the top level is *VERY*
*HELPFUL* for debugging Cython problems.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment