first commit
This commit is contained in:
48
thirdparty/ode-0.16.5/bindings/python/setup.py
vendored
Normal file
48
thirdparty/ode-0.16.5/bindings/python/setup.py
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
#! /usr/bin/env python
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
from subprocess import Popen, PIPE, CalledProcessError
|
||||
|
||||
|
||||
try:
|
||||
from Cython.Distutils import build_ext
|
||||
except ImportError:
|
||||
raise SystemExit("Requires Cython (http://cython.org/)")
|
||||
|
||||
try:
|
||||
ode_cflags = Popen(
|
||||
["pkg-config", "--cflags", "ode"],
|
||||
stdout=PIPE).stdout.read().decode('ascii').split()
|
||||
ode_libs = Popen(
|
||||
["pkg-config", "--libs", "ode"],
|
||||
stdout=PIPE).stdout.read().decode('ascii').split()
|
||||
except (OSError, CalledProcessError):
|
||||
raise SystemExit("Failed to find ODE with 'pkg-config'. Please make sure "
|
||||
"that it is installed and available on your system path.")
|
||||
|
||||
ode_ext = Extension("ode", ["ode.pyx"],
|
||||
extra_compile_args=ode_cflags,
|
||||
extra_link_args=ode_libs)
|
||||
|
||||
if __name__ == "__main__":
|
||||
setup(
|
||||
name="Open Dynamics Engine",
|
||||
version="0.12",
|
||||
author="Gideon Klompje",
|
||||
# author_email="",
|
||||
# maintainer="",
|
||||
# maintainer_email="",
|
||||
url="http://www.ode.org",
|
||||
description="Bindings for the Open Dynamics Engine",
|
||||
long_description=(
|
||||
"A free, industrial quality library for simulating articulated "
|
||||
"rigid body dynamics - for example ground vehicles, legged "
|
||||
"creatures, and moving objects in VR environments. It's fast, "
|
||||
"flexible & robust. Built-in collision detection."),
|
||||
# download_url="https://opende.svn.sourceforge.net/svnroot/opende",
|
||||
# classifiers=[],
|
||||
# platforms=[],
|
||||
license="BSD License, GNU Lesser General Public License (LGPL)",
|
||||
cmdclass={"build_ext": build_ext},
|
||||
ext_modules=[ode_ext]
|
||||
)
|
||||
Reference in New Issue
Block a user