-
Notifications
You must be signed in to change notification settings - Fork 4
Build
There is one dependency for this package, that is not free software but freely available from the manufacturer's web, the Pylon SDK. Under linux systems, this does the installation in the /opt directory:
- Pylon 2.3.3-1337: /opt/pylon
- Pylon 3.2.1-0: /opt/pylon3
- Pylon 4.0.0-62: /opt/pylon4
Those are the Pylon version where this module is being use to develop.
In the sources there is a file called env.sh that prepares the environment variables needed to have this module working. It should be complete and any issue with the environment configuration shall be considered a bug and fixed in this file. The default current pylon used here is the one with a major number 2. To have the environment configured for another release, load it with a first argument 'pylon' followed with the major number desired.
Having the Pylon SDK installed, this should be as easy as call the setup.sh script. Yes, there is a setup.py but it needs the environment configured, and that's why the bash script was prepared.
A call to the command: $ ./setup.sh will build a pylon.so file that will work with pylon 2. Use arguments like: $ ./setup.sh pylon N with N in [3,4] to have it for the newer pylons.
The call to install the module is not recommended at this level of the development. This is only a proof of concept module and it could be better to adapt your PYTHONPATH on the console you use. Then a python console can be opened and:
>>> import pylon
>>> pylon.pylonversionstr()
'2.3.3-1337'
>>> pylon.pyversionstr()
'0.0.0-0'With other Pylon releases the returned number about it will be different. But the python binding has it's own version number apart from the sdk.