mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-30 08:44:21 +08:00
Move extensions dir into test
This commit is contained in:
10
test/extensions/README.rst
Normal file
10
test/extensions/README.rst
Normal file
@@ -0,0 +1,10 @@
|
||||
This directory contains pre-compiled extensions modules used to test completions
|
||||
for compiled modules on Travis-CI (Ubuntu 12.04 64bit).
|
||||
|
||||
To build the extensions modules, run::
|
||||
|
||||
python setup.py build_ext -i
|
||||
|
||||
|
||||
Then move the compiled modules to their testing package ( ./**compiledXX**, where XX is the
|
||||
python version used to run setup.py).
|
||||
6
test/extensions/compiled.pyx
Normal file
6
test/extensions/compiled.pyx
Normal file
@@ -0,0 +1,6 @@
|
||||
cdef class Foo:
|
||||
pass
|
||||
|
||||
|
||||
cdef class Bar:
|
||||
pass
|
||||
6
test/extensions/setup.py
Normal file
6
test/extensions/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from distutils.core import setup
|
||||
from Cython.Build import cythonize
|
||||
|
||||
setup(
|
||||
ext_modules=cythonize("compiled.pyx")
|
||||
)
|
||||
@@ -9,7 +9,7 @@ import jedi
|
||||
from .helpers import cwd_at
|
||||
|
||||
|
||||
@cwd_at('extensions')
|
||||
@cwd_at('test/extensions')
|
||||
def test_compiled():
|
||||
if platform.architecture()[0] == '64bit':
|
||||
package_name = "compiled%s%s" % sys.version_info[:2]
|
||||
|
||||
Reference in New Issue
Block a user