... | ... | @@ -14,12 +14,38 @@ The project aims to create a Python module which encapsulates [libisds](http://x |
|
|
|
|
|
Autotools are used to configure the sources before compilation. Depending on whether you build the sources directly from the repository or from a source package you'll need to proceed the following steps.
|
|
|
|
|
|
### Building from Git
|
|
|
#### Building from Git
|
|
|
|
|
|
If you downloaded the sources from the git repository you will be faced with the problem to generate the `configure` script as it is not part of the repository. Use the following command
|
|
|
If you downloaded the sources from the git repository you will be faced with the problem to generate the `configure` script as it is not part of the repository.
|
|
|
|
|
|
Use the following command
|
|
|
|
|
|
```sh
|
|
|
./autogen.sh
|
|
|
```
|
|
|
|
|
|
The command can generate some errors about a missing AM_INIT_AUTOMAKE or Makefile.am but those can be ignored as long as the target `configure` script is generated. |
|
|
\ No newline at end of file |
|
|
The command can generate some errors about a missing AM_INIT_AUTOMAKE or Makefile.am but those can be ignored as long as the target `configure` script is generated.
|
|
|
|
|
|
> You need autotools, autoconf-archive data and libtool to generate the script.
|
|
|
|
|
|
Proceed with the next step if you have a `configure` script.
|
|
|
|
|
|
#### Configuring and Sources
|
|
|
|
|
|
Use `configure` to prepare the sources before building. You may specify the desired Python version if you have multiple versions in your system using the PYTHON_VERSION variable.
|
|
|
|
|
|
```sh
|
|
|
PYTHON_VERSION=3.7 ./configure
|
|
|
```
|
|
|
|
|
|
The script uses `pkg-config` to search for required libraries. For example, if you have libisds installed in a non-standard location you can specify the location using the PKG_CONFIG_PATH variable.
|
|
|
|
|
|
```sh
|
|
|
PYTHON_VERSION=3.7 PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig ./configure
|
|
|
```
|
|
|
|
|
|
Other configuration options can be listed using the command:
|
|
|
|
|
|
```sh
|
|
|
./configure --help
|
|
|
``` |
|
|
\ No newline at end of file |