Skip to content

Commit b7f5a55

Browse files
author
Pan
committed
Fixed readthedocs builds
1 parent f736a15 commit b7f5a55

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

setup.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import platform
1818
from setuptools import setup, find_packages
1919
from platform import python_version
20-
from glob import glob
2120

2221
import versioneer
2322

@@ -32,13 +31,6 @@
3231

3332

3433
ON_WINDOWS = platform.system() == 'Windows'
35-
ON_RTD = os.environ.get('READTHEDOCS') == 'True'
36-
37-
if ON_RTD:
38-
files = glob('pssh/native/*.c')
39-
for _file in files:
40-
os.remove(_file)
41-
4234

4335
gevent_req = 'gevent<=1.1' if python_version() < '2.7' else 'gevent>=1.1'
4436

@@ -48,9 +40,8 @@
4840
'wraparound': False,
4941
}
5042

51-
_fwd_default = 0 if ON_RTD else 1
5243
_embedded_lib = bool(int(os.environ.get('EMBEDDED_LIB', 1)))
53-
_have_agent_fwd = bool(int(os.environ.get('HAVE_AGENT_FWD', _fwd_default)))
44+
_have_agent_fwd = bool(int(os.environ.get('HAVE_AGENT_FWD', 1)))
5445

5546
cython_args = {'cython_directives': cython_directives,
5647
'cython_compile_time_env': {

0 commit comments

Comments
 (0)