Commit 9452c45f authored by Robert Bradshaw's avatar Robert Bradshaw

Most basic distutils test.

parent bfe3c0a8
......@@ -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]
......
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 ########
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment