Skip to content

Commit caf2365

Browse files
authored
Compile direct.c only on PASE
Signed-off-by: jkyeung <gallium.arsenide@gmail.com>
1 parent 1c88aaa commit caf2365

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from setuptools import setup, find_packages, Extension
2+
from platform import system
23

34

45
setup(
@@ -16,7 +17,7 @@
1617
ext_modules=[
1718
Extension('itoolkit/transport/_direct',
1819
['src/itoolkit/transport/direct.c'])
19-
],
20+
] if system() == 'OS400' else [],
2021
classifiers=[
2122
"License :: OSI Approved :: MIT License",
2223
"Programming Language :: Python :: 2.7",

0 commit comments

Comments
 (0)