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
9452c45f
Commit
9452c45f
authored
Sep 12, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Most basic distutils test.
parent
bfe3c0a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
Cython/Compiler/Dependencies.py
Cython/Compiler/Dependencies.py
+4
-1
tests/build/basic_distutils.srctree
tests/build/basic_distutils.srctree
+16
-0
No files found.
Cython/Compiler/Dependencies.py
View file @
9452c45f
...
...
@@ -226,7 +226,10 @@ def create_dependency_tree(ctx):
_dep_tree
=
DependencyTree
(
ctx
)
return
_dep_tree
def
create_extension_list
(
filepatterns
,
ctx
):
def
create_extension_list
(
filepatterns
,
ctx
=
None
):
if
ctx
is
None
:
from
Cython.Compiler.Main
import
Context
ctx
=
Context
([
"."
])
deps
=
create_dependency_tree
(
ctx
)
if
isinstance
(
filepatterns
,
str
):
filepatterns
=
[
filepatterns
]
...
...
tests/build/basic_distutils.srctree
0 → 100644
View file @
9452c45f
PYTHON setup.py build_ext --inplace
PYTHON -c "import a"
######## setup.py ########
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("a", ["a.pyx"])],
)
######## a.pyx ########
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