File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ script:
27
27
- nosetests --with-coverage --cover-package=pssh
28
28
- flake8 pssh
29
29
- cd doc; make html; cd ..
30
+ # Test building from source distribution
31
+ - python setup.py sdist
32
+ - cd dist; pip install *; cd ..
30
33
after_success :
31
34
- codecov
32
35
jobs :
Original file line number Diff line number Diff line change 1
1
include versioneer.py
2
2
include pssh/_version.py
3
3
recursive-exclude tests *
4
+ include pssh/native/*.c
5
+ include pssh/native/*.pyx
Original file line number Diff line number Diff line change 20
20
import versioneer
21
21
22
22
try :
23
- from Cython .Build import cythonize
24
23
from Cython .Distutils .extension import Extension
25
24
from Cython .Distutils import build_ext
26
25
except ImportError :
45
44
# 'libeay32', 'ssleay32',
46
45
'Ws2_32' , 'libssh2' , 'user32' ]
47
46
47
+
48
+ ext = 'pyx' if USING_CYTHON else 'c'
48
49
_comp_args = ["-O3" ] if platform .system () != 'Windows' else None
49
50
extensions = [
50
51
Extension ('pssh.native._ssh2' ,
51
- sources = ['pssh/native/_ssh2.pyx' ],
52
+ sources = ['pssh/native/_ssh2.%s' % ext ],
52
53
include_dirs = ["libssh2/include" ],
53
54
libraries = _libs ,
54
55
extra_compile_args = _comp_args ,
You can’t perform that action at this time.
0 commit comments