1- #
2- # Copyright 2022 Yulun Zhuang
3- #
4- # Licensed under the Apache License, Version 2.0 (the "License");
5- # you may not use this file except in compliance with the License.
6- # You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software
11- # distributed under the License is distributed on an "AS IS" BASIS,
12- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- # See the License for the specific language governing permissions and
14- # limitations under the License.
15-
161from setuptools import find_packages
172from sys import platform as _platform
183import os
@@ -181,16 +166,6 @@ def _single_compile(obj):
181166 CXX_FLAGS += '-Wno-unused-local-typedefs '
182167 CXX_FLAGS += '-Wno-unused-variable '
183168 CXX_FLAGS += '-Wno-unused-but-set-variable '
184-
185- elif _platform == "win32" :
186- print ("win32!" )
187- include_dirs += ['extern/osqp/include/windows' ]
188- print (include_dirs )
189- libraries = ['User32' , 'kernel32' ]
190- #CXX_FLAGS += '-DIS_WINDOWS '
191- CXX_FLAGS += '-DWIN32 '
192- CXX_FLAGS += '-DGLEW_STATIC '
193- CXX_FLAGS += '/std:c++17 '
194169elif _platform == "darwin" :
195170 print ("darwin!" )
196171 CXX_FLAGS += '-fpermissive '
@@ -204,14 +179,7 @@ def _single_compile(obj):
204179 CXX_FLAGS += '-mmacosx-version-min=10.7 '
205180 # CXX_FLAGS += '-framework Cocoa '
206181else :
207- print ("bsd!" )
208- include_dirs += ['extern/osqp/include/linux' ]
209- libraries = ['GL' , 'GLEW' , 'pthread' ]
210- os .environ ['LDFLAGS' ] = '-L/usr/X11R6/lib'
211- CXX_FLAGS += '-D_BSD '
212- CXX_FLAGS += '-I/usr/X11R6/include '
213- CXX_FLAGS += '-DHAS_SOCKLEN_T '
214- CXX_FLAGS += '-fno-inline-functions-called-once'
182+ raise NotImplementedError (f"OS not support: { _platform } " )
215183
216184setup_py_dir = os .path .dirname (os .path .realpath (__file__ ))
217185
@@ -244,22 +212,5 @@ def _single_compile(obj):
244212 'numpy'
245213 ],
246214 ext_modules = extensions ,
247- classifiers = [
248- 'Development Status :: 5 - Production/Stable' ,
249- 'License :: OSI Approved :: zlib/libpng License' ,
250- 'Operating System :: Microsoft :: Windows' ,
251- 'Operating System :: POSIX :: Linux' , 'Operating System :: MacOS' ,
252- 'Intended Audience :: Science/Research' ,
253- "Programming Language :: Python" ,
254- 'Programming Language :: Python :: 2.7' ,
255- 'Programming Language :: Python :: 3.4' ,
256- 'Programming Language :: Python :: 3.5' ,
257- 'Programming Language :: Python :: 3.6' ,
258- 'Programming Language :: Python :: 3.7' ,
259- 'Programming Language :: Python :: 3.8' ,
260- 'Topic :: Games/Entertainment :: Simulation' ,
261- 'Topic :: Scientific/Engineering :: Artificial Intelligence' ,
262- 'Framework :: Robot Framework'
263- ],
264215 packages = [x for x in find_packages ('.' )],
265216)
0 commit comments