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:
55 - setuptools
66 - libssh2
77 - toolchain3
8+ - cython
Original file line number Diff line number Diff line change 2121 USING_CYTHON = True
2222
2323ON_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+
2431
2532ext = 'pyx' if USING_CYTHON else 'c'
2633sources = glob ('ssh2/*.%s' % (ext ,))
3138]
3239
3340# _comp_args = ["-ggdb"]
41+ _fwd_default = 0 if ON_RTD else 1
3442_comp_args = ["-O3" ] if not ON_WINDOWS else None
3543_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 )))
3745cython_directives = {'embedsignature' : True ,
3846 'boundscheck' : False ,
3947 'optimize.use_switch' : True ,
You can’t perform that action at this time.
0 commit comments