File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ dependencies:
5
5
- setuptools
6
6
- libssh2
7
7
- toolchain3
8
+ - cython
Original file line number Diff line number Diff line change 21
21
USING_CYTHON = True
22
22
23
23
ON_WINDOWS = platform.system() == 'Windows'
24
+ ON_RTD = os.environ.get('READTHEDOCS') == 'True'
25
+
26
+ if ON_RTD:
27
+ files = glob('ssh2/*.c')
28
+ for _file in files:
29
+ os.remove(_file)
30
+
24
31
25
32
ext = 'pyx' if USING_CYTHON else 'c'
26
33
sources = glob('ssh2/*.%s' % (ext,))
31
38
]
32
39
33
40
# _comp_args = ["-ggdb"]
41
+ _fwd_default = 0 if ON_RTD else 1
34
42
_comp_args = ["-O3"] if not ON_WINDOWS else None
35
43
_embedded_lib = bool(int(os.environ.get('EMBEDDED_LIB', 1)))
36
- _have_agent_fwd = bool(int(os.environ.get('HAVE_AGENT_FWD', 1 )))
44
+ _have_agent_fwd = bool(int(os.environ.get('HAVE_AGENT_FWD', _fwd_default )))
37
45
cython_directives = {'embedsignature': True,
38
46
'boundscheck': False,
39
47
'optimize.use_switch': True,
You can’t perform that action at this time.
0 commit comments