15 Commits

Author SHA1 Message Date
Vincent Jicquel
ab62dd3c5d Revert "Merge branch 'mr/jicquel/#4.python-3.12' into 'master'"
This reverts merge request !8
2024-04-04 08:05:04 +00:00
Vincent Jicquel
0a097d9322 Update python scripts to the new python version 3.12
distutils has been removed in python 3.12. Replace calls to
distutils.sysconfig to direct sysconfig calls.

Issue: eng/toolchain/gnatcoll-bindings#4
2024-03-22 14:22:50 +00:00
Nicolas Setton
1a230fb6c1 U515-001 gracefully handle the absence of a static python lib
Fix a Python error that occurred when the static lib was not
found.

Change-Id: I02096a913e03714a23bf25935cf056e332452dd5
2021-05-26 10:56:34 +01:00
Nicolas Setton
6e9769eb5a TB10-016 Make gnatcoll_python.gpr relocatable
Add a project variable to indicate the path to the libpython*.la,
and use this variable to find this when building.

Copy the .la file to the installation destination,
and use the variable to make sure the project generated by gprinstall
finds it.

Change-Id: Ic145f14339091ecb3bf6f10af14916de9fa176d4
2020-11-18 15:55:55 +00:00
Nicolas Roche
b508bcf68b Ensure setup.py for gnatcoll Python binding works with 3.x
Part of S810-004

Change-Id: I90e4bc9086cb704685cf7466d2433c36f7bfd2ee
2019-11-22 17:33:13 +02:00
Vasiliy Fofanov
c10b42bedf Document that only Python 2 is supported. Minor script tweak. S808-025
Change-Id: I9e8c3a4596fc66c93b453fa0d84c6a6370afded3
2019-08-12 12:27:51 +02:00
Pierre-Marie de Rodat
74dd19c3ea python/setup.py: fix local referenced before assignment
no-tn-check

Change-Id: Ibad29e7a1931ae3a745be6b56f57ff3c12fdd4cd
2019-02-08 17:26:36 +01:00
Pierre-Marie de Rodat
1ad6f7f1b8 */setup.py: remove obsolete support for --disable-shared
Change-Id: I28f73c6aa2f64cd238a921827a5b9c194329c5aa
TN: S208-007
2019-02-08 17:22:59 +01:00
Nicolas Roche
93907d7dfe Adjust cases for which we should link with shared libpython
When --enable-framework is passed it means that --enable-shared was
passed implicitely.
Part of R606-030

Change-Id: I0506e3e690d582e43aa5dc8cd2c5aa6b84e7e3f2
2018-06-06 15:34:25 +02:00
Nicolas Roche
4ff02cdfe4 Choose right version of the libpython: share or static
Part of R207-013

Change-Id: I7058381faa936eddc0f50e9182de836410d34297
2018-02-07 15:39:00 +01:00
Vadim Godunko
e41eb658c3 QB01-037 Use prefix of specified interpreter to relocate paths.
This allows to use virtual environments too.

Change-Id: I6f85b8926fc502f9077c4d3d4d655c7a45a46565
2018-02-07 07:12:28 -05:00
Vadim Godunko
85e5884d08 QB01-037 Set library kind for libgpr.
Change-Id: Ib03bdc8b9d6b4461aaed7de41073381f246ea7cb
2018-02-07 04:36:22 -05:00
Nicolas Roche
2fe739ff7b Rename projects to avoid backward compatibility issues
Part of R117-015

Change-Id: I80bbd4b9e2594f23bce3d5dc2ef8e9ac534c0fb4
2018-01-17 11:31:47 +01:00
Nicolas Roche
fa5ca26262 Update default library types to static
Add comments about the danger of chaniging the order

Change-Id: I014a26cbd972368f5e9a1e2eb6e9fe668caaf5ef
2017-12-01 10:24:15 +01:00
Nicolas Roche
67877b9fe0 Review build/install procedure of gnatcoll bindings components
Use Python rather than makefiles in order to make the build process
more portable (specially on Windows systems). The new build system
just add a dependency on a bare Python installation.

Part of P909-033

Change-Id: Icb4fcd72a7c1b2c7063ca8044ecd526f11969985
2017-11-06 15:06:39 +01:00