- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
executable file
·23 lines (19 loc) · 586 Bytes
/
Copy pathsetup.py
File metadata and controls
executable file
·23 lines (19 loc) · 586 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
fromsetuptoolsimportsetup, Extension
fromsysimportplatformas_platform
if_platform=="darwin":
# OS X
link_flags="-lc++"
elif_platform=="linux"or_platform=="linux2":
link_flags="-lstdc++"
setup(
name="OpenCC",
author="Rexdf",
author_email="rexdf@rexdf.org",
description="OpenCC python wrapper.",
ext_modules=[
Extension("_OpenCC", ["OpenCCPython.i"], ["OpenCC/src"],
library_dirs=["OpenCC/build/rel/src"],
libraries=["opencc"],
extra_link_args=[link_flags]),
],
)