Erwin Coumans
ef9570c315
add yapf style and apply yapf to format all Python files
...
This recreates pull request #2192
2019-04-27 07:31:15 -07:00
Andrew Hundt
706013b87a
FindPythonLibs.cmake add missing quotes
...
This avoids problems in the case that the the path has a space in it.
2017-12-07 21:47:38 -05:00
Andrew Hundt
4810b99155
Add special search paths for linux python libraries such as libpython3.5m.so
2017-09-29 17:38:40 -04:00
Andrew Hundt
b720bd6290
cmake python fix typos for linux #1322
2017-09-21 23:47:31 -04:00
Andrew Hundt
ff15f2e702
cmake python fix for linux #1322
...
Search did not cover inconsistent lib location defined within python under linux versions
https://stackoverflow.com/questions/20582270/distribution-independent-libpython-path
2017-09-21 23:42:52 -04:00
Andrew Hundt
1e83630c1d
cmake minor fixes
2017-05-21 09:32:00 -04:00
Andrew Hundt
263ccec18a
cmake python config bugs fixed
...
Python and pybullet remain optional with these changes.
A specific python version can now be selected by setting PYTHON_VERSION_PYBULLET.
The python library version must now match the interpreter version exactly.
If all required python dependencies are found, pybullet is now enabled by default.
Changes incorporate the following BSD licensed cmake code:
32bf5c7ad8/CMakeScripts/FindNumPy.cmake
https://github.com/NikolausDemmel/CMake/pull/2/files
86578eccf2/Modules/SelectLibraryConfigurations.cmake
2017-05-20 20:47:46 -04:00
Erwin Coumans
7df9b69039
pybullet: add option to use NumPy to speed up, thanks to moof2k
...
option is disabled by default. When using cmake, use
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=ON
then both testrender.py and testrender_np.py will work
without numpy only testrender.py works.
The numpy.reshape is likely a no-op when using numpy array,
so we could remove testrender_np.py...
See https://github.com/bulletphysics/bullet3/pull/774
2016-09-11 11:35:12 +01:00