I installed pybullet using venv (https://docs.python.org/3/library/venv.html) - and all is working great.
I'm rather lost in the world of python and c++ - so any pointers on the below questions would be much appreciated.
I'm considering trying to build https://github.com/bulletphysics/bullet3
From the root of the venv folder I found gym/lib/python3.7/site-packages/pybullet.cpython-37m-x86_64-linux-gnu.so. Am I correct in thinking I am going to be building the equivalent of this executable?
What steps are involved in calling from Python to the correct external binary executable? How does `import pybullet as p` resolve to gym/lib/python3.7/site-packages/pybullet.cpython-37m-x86_64-linux-gnu.so?
Thanks
Python to C++
Re: Python to C++
I got some useful info on SO
https://stackoverflow.com/questions/618 ... pendencies
-----
In short words: C-python just looks for correctly named dynamic libraries in PYTHONPATH, loads such library and uses predefined interface to understand what exactly from this library shall be visible as contents of the module inside Python.
In long words details of how to prepare such shared object and what are required contents of it are described in https://docs.python.org/3/extending/index.html
So venv just puts dynamic library in directory which is part of PYTHONPATH of virtual environment.
Slimak
https://stackoverflow.com/questions/618 ... pendencies
-----
In short words: C-python just looks for correctly named dynamic libraries in PYTHONPATH, loads such library and uses predefined interface to understand what exactly from this library shall be visible as contents of the module inside Python.
In long words details of how to prepare such shared object and what are required contents of it are described in https://docs.python.org/3/extending/index.html
So venv just puts dynamic library in directory which is part of PYTHONPATH of virtual environment.
Slimak