@@ -22,10 +22,24 @@ limitations under the License.
...
@@ -22,10 +22,24 @@ limitations under the License.
### Quick build guide
### Quick build guide
#### Visual Studio
Although the CMakeLists creates a Visual Studio project, this project is of no use for Python. It is just for convenience to compile and link the VAPython source code. But it will handle some file copying for distutils, see below. It therefore is necessary to run the `INSTALL` project in order to prepare this.
#### Distutils
Use Pythons *distutils* to build the module that is called `va`. Depending on the version, you will have to install the matching compiler build tools. See the [Python documentation](https://docs.python.org/3.6/library/distutils.html) for more information.
Use Pythons *distutils* to build the module that is called `va`. Depending on the version, you will have to install the matching compiler build tools. See the [Python documentation](https://docs.python.org/3.6/library/distutils.html) for more information.
Build VA using CMake with the `ITA_VA_WITH_BINDING_PYTHON` option beforehand. This will prepare some paths in the setup configuration.
It is very important to build and install VA using CMake with the `ITA_VA_WITH_BINDING_PYTHON` option beforehand. This will prepare some paths in the setup configuration and this will also add the required shared libraries into the `bin` folder, where the package distribution command will expect them to be.
`python setup.py build`
`python setup.py build`
`python setup.py install --prefix=dist`
`python setup.py install --prefix=dist`
`python setup.py sdist'
Drop the `prefix` argument if you want to integrate the module into your site-packages folder, which might require that you use a command window with administration privileges.
Drop the `prefix` argument if you want to integrate the module into your site-packages folder, which might require that you use a command window with administration privileges.
#### Trouble shooting
If you get some errors like `module not found`, this usually refers to missing or incompatible shared libraries that the `va` module is trying to load upon import within the Python interpreter. Make sure the following files are available (i.e. copy them next to the va*.pyc file in the dist/lib/ site-packages folder or into the distribution zip file)