Format setup script.

pull/493/head
KmolYuan 2019-09-27 21:21:21 +08:00
parent 88d828546c
commit b49366b820
1 changed files with 1 additions and 6 deletions

View File

@ -57,7 +57,6 @@ macros = [
('EXPORT_DLL', None), ('EXPORT_DLL', None),
('_CRT_SECURE_NO_WARNINGS', None), ('_CRT_SECURE_NO_WARNINGS', None),
] ]
compile_args = [ compile_args = [
'-O3', '-O3',
'-Wno-cpp', '-Wno-cpp',
@ -67,7 +66,6 @@ compile_args = [
'-fPIC', '-fPIC',
'-std=c++11', '-std=c++11',
] ]
sources = [ sources = [
pth_join('python_solvespace', 'slvs.pyx'), pth_join('python_solvespace', 'slvs.pyx'),
pth_join(src_path, 'util.cpp'), pth_join(src_path, 'util.cpp'),
@ -78,17 +76,14 @@ sources = [
pth_join(src_path, 'system.cpp'), pth_join(src_path, 'system.cpp'),
pth_join(src_path, 'lib.cpp'), pth_join(src_path, 'lib.cpp'),
] ]
if system() == 'Windows': if system() == 'Windows':
# Avoid compile error with CYTHON_USE_PYLONG_INTERNALS. # Avoid compile error with CYTHON_USE_PYLONG_INTERNALS.
# https://github.com/cython/cython/issues/2670#issuecomment-432212671 # https://github.com/cython/cython/issues/2670#issuecomment-432212671
macros.append(('MS_WIN64', None)) macros.append(('MS_WIN64', None))
# Disable format warning # Disable format warning
compile_args.append('-Wno-format') compile_args.append('-Wno-format')
# Solvespace arguments # Solvespace arguments
macros.append(('WIN32', None)) macros.append(('WIN32', None))
# Platform sources # Platform sources
sources.append(pth_join(platform_path, 'utilwin.cpp')) sources.append(pth_join(platform_path, 'utilwin.cpp'))
sources.append(pth_join(platform_path, 'platform.cpp')) sources.append(pth_join(platform_path, 'platform.cpp'))
@ -137,7 +132,7 @@ setup(
version=find_version('python_solvespace', '__init__.py'), version=find_version('python_solvespace', '__init__.py'),
author=__author__, author=__author__,
author_email=__email__, author_email=__email__,
description="Python library of Solvespace", description="Python library of Solvespace.",
long_description=read("README.md"), long_description=read("README.md"),
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
url="https://github.com/KmolYuan/solvespace", url="https://github.com/KmolYuan/solvespace",