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
Boxiang Sun
cython
Commits
03332a11
Commit
03332a11
authored
Jul 17, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added bug test case by Gabriel Jacobo
parent
753f069b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
tests/run/starimport_cimport.srctree
tests/run/starimport_cimport.srctree
+39
-0
No files found.
tests/run/starimport_cimport.srctree
0 → 100644
View file @
03332a11
PYTHON setup.py build_ext --inplace
PYTHON -c "import star_cimport_test"
######## setup.py ########
from distutils.core import setup
from Cython.Distutils import build_ext
from Cython.Distutils.extension import Extension
setup(
ext_modules = [
Extension("star_cimport_ext", ["star_cimport_ext.pyx"]),
Extension("star_cimport_test", ["star_cimport_test.pyx"]),
],
cmdclass={'build_ext': build_ext},
)
######## star_cimport_ext.pyx ########
cdef class test_pxd:
pass
######## star_cimport_ext.pxd ########
cdef class test_pxd:
pass
######## star_cimport.py ########
class test_py:
pass
######## star_cimport_test.pyx ########
# Tests a Python star import followed by a cimport
from star_cimport import *
from star_cimport_ext cimport test_pxd
cdef test_pxd t = test_pxd()
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