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:
2727 - nosetests --with-coverage --cover-package=pssh
2828 - flake8 pssh
2929 - cd doc; make html; cd ..
30+ # Test building from source distribution
31+ - python setup.py sdist
32+ - cd dist; pip install *; cd ..
3033after_success :
3134 - codecov
3235jobs :
Original file line number Diff line number Diff line change 11include versioneer.py
22include pssh/_version.py
33recursive-exclude tests *
4+ include pssh/native/*.c
5+ include pssh/native/*.pyx
Original file line number Diff line number Diff line change 2020import versioneer
2121
2222try :
23- from Cython .Build import cythonize
2423 from Cython .Distutils .extension import Extension
2524 from Cython .Distutils import build_ext
2625except ImportError :
4544 # 'libeay32', 'ssleay32',
4645 'Ws2_32' , 'libssh2' , 'user32' ]
4746
47+
48+ ext = 'pyx' if USING_CYTHON else 'c'
4849_comp_args = ["-O3" ] if platform .system () != 'Windows' else None
4950extensions = [
5051 Extension ('pssh.native._ssh2' ,
51- sources = ['pssh/native/_ssh2.pyx' ],
52+ sources = ['pssh/native/_ssh2.%s' % ext ],
5253 include_dirs = ["libssh2/include" ],
5354 libraries = _libs ,
5455 extra_compile_args = _comp_args ,
You can’t perform that action at this time.
0 commit comments