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
Xavier Thompson
cython
Commits
f78f8806
Commit
f78f8806
authored
7 years ago
by
MaxBo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix coverage_api test for windows by renaming the .pyd-files
parent
7e39d9e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tests/run/coverage_api.srctree
tests/run/coverage_api.srctree
+15
-0
No files found.
tests/run/coverage_api.srctree
View file @
f78f8806
...
...
@@ -4,6 +4,7 @@
"""
PYTHON -c "import shutil; shutil.copy('pkg/coverage_test_pyx.pyx', 'pkg/coverage_test_pyx.pxi')"
PYTHON setup.py build_ext -i
PYTHON rename_pyd.py
PYTHON coverage_test.py
"""
...
...
@@ -23,6 +24,20 @@ setup(ext_modules = cythonize([
plugins = Cython.Coverage
######## rename_pyd.py ########
import os
import glob
pyd_files = glob.glob('**/*.pyd', recursive=True)
for filepath in pyd_files:
folder, fn = os.path.split(filepath)
basename, ext = os.path.splitext(fn)
new_name = os.path.splitext(basename)[0] + '.pyd'
new_filepath = os.path.join(folder, new_name)
os.rename(filepath, new_filepath)
######## pkg/__init__.py ########
######## pkg/coverage_test_py.py ########
...
...
This diff is collapsed.
Click to expand it.
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