Skip to content

Commit b9dc8ab

Browse files
author
Pan
committed
Refactoring - Moved extension classes to their own modules. Added cython definition files for all extension classes.
1 parent 17de0e6 commit b9dc8ab

32 files changed

+42957
-30840
lines changed

setup.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@
1919

2020
ext = 'pyx' if USING_CYTHON else 'c'
2121

22-
sources = glob.glob("ssh2/*.%s" % (ext,))
22+
sources = glob.glob("ssh2/ext/*.%s" % (ext,))
23+
extensions = sources
2324

2425
extensions = [
25-
Extension("ssh2.ssh2",
26-
sources=sources,
26+
Extension('ssh2/*',
27+
sources=['ssh2/*.pyx'],
2728
libraries=['ssh2'],
2829
# extra_compile_args=["-O3"],
2930
extra_compile_args=["-ggdb"],
30-
),
31+
# For conditional compilation
32+
# pyrex_compile_time_env
33+
)
34+
# for ext in extensions
3135
]
3236

3337
if USING_CYTHON:
@@ -42,7 +46,7 @@
4246
setup(
4347
name='ssh2-python',
4448
# version=versioneer.get_version(),
45-
version='0.1b1',
49+
version='0.2.0',
4650
url='https://github.com/ParallelSSH/ssh2-python',
4751
license='LGPLv2',
4852
author='Panos Kittenis',

ssh2/__init__.pxd

Whitespace-only changes.

ssh2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .ssh2 import Session, Channel
1+
from .session import Session

0 commit comments

Comments
 (0)