forked from cython/cython
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tolerate literal globs (cythonGH-5942 backport to 3.0.x)
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# tag: gh5942 | ||
|
||
PYTHON setup.py build_ext --inplace | ||
PYTHON -c "from tglob import mytest; mytest()" | ||
|
||
######## tglob.pyx ######## | ||
def mytest(): | ||
assert True | ||
|
||
######## setup.py ######## | ||
import sys | ||
|
||
from Cython.Build.Dependencies import cythonize | ||
from distutils.core import setup, Extension | ||
|
||
sys.path.append("[Hello-World]*?") | ||
|
||
try: | ||
from __builtin__ import reload | ||
except ImportError: | ||
from importlib import reload | ||
reload(sys) # Magic | ||
|
||
setup( | ||
ext_modules=cythonize(["tglob.pyx"], language_level="3"), | ||
) | ||
|