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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
b9809a96
Commit
b9809a96
authored
Sep 29, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for cythonize excludes
parent
80eaeaab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
tests/build/cythonize_script_excludes.srctree
tests/build/cythonize_script_excludes.srctree
+49
-0
No files found.
tests/build/cythonize_script_excludes.srctree
0 → 100644
View file @
b9809a96
PYTHON -m Cython.Build.Cythonize -i '**/*.pyx' -x '**/t/**/*.pyx' -x '**/m/**/*.pyx'
PYTHON -c "import tests; assert tests.X.x == 2"
######## tests.py ########
import sys
sys.path.append('src')
import a.f.c.d.x as X
assert X.x == 2
assert 'src/a/' in X.__file__ or 'src\\a\\' in X.__file__
try:
import a.t.c.d.x
except ImportError:
pass
else:
assert False, "ImportError not raised - exclude of 't' package did not work"
try:
import a.m.c.d.x
except ImportError:
pass
else:
assert False, "ImportError not raised - exclude of 'm' package did not work"
######## src/a/__init__.py ########
######## src/a/t/__init__.py ########
######## src/a/t/c/__init__.py ########
######## src/a/t/c/d/__init__.py ########
######## src/a/t/c/d/x.pyx ########
x = 1
######## src/a/__init__.py ########
######## src/a/f/__init__.py ########
######## src/a/f/c/__init__.py ########
######## src/a/f/c/d/__init__.py ########
######## src/a/f/c/d/x.pyx ########
x = 2
######## src/a/__init__.py ########
######## src/a/m/__init__.py ########
######## src/a/m/c/__init__.py ########
######## src/a/m/c/d/__init__.py ########
######## src/a/m/c/d/x.pyx ########
x = 3
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