Commit f60cb3f0 authored by Martin Quinson's avatar Martin Quinson

Build the python bindings as a separate package

parent dbdbde3e
Pipeline #46408 passed with stages
in 45 minutes and 38 seconds
......@@ -19,6 +19,8 @@ Build-Depends:
# Needed to build the doc
transfig, ghostscript, libjs-mathjax,
python3,
python3-dev,
pybind11-dev,
Standards-Version: 4.3.0
Homepage: http://simgrid.org/
Vcs-Git: https://salsa.debian.org/debian/simgrid.git
......@@ -80,6 +82,25 @@ Description: Java bindings for the SimGrid Toolkit
This package contains what you need to use SimGrid from the Java
programming language.
Package: python3-simgrid
Architecture: any
Section: python
Depends: ${shlibs:Depends}, ${misc:Depends}, libsimgrid3.22 (>= ${source:Version})
Recommends: simgrid-doc (>= ${source:Version})
Breaks: simgrid (<< 3.11)
Replaces: simgrid (<< 3.11)
Suggests: python3
Description: Python3 bindings for the SimGrid Toolkit
SimGrid is a toolkit that provides core functionalities for the simulation of
distributed applications in heterogeneous distributed environments. SimGrid
can be used as a Grid simulator, a P2P simulator, a Cloud simulator, a MPI
simulator, or a mix of all of them. The typical use-cases of SimGrid include
heuristic evaluation, application prototyping, and real application
development and tuning.
.
This package contains what you need to use SimGrid from the Python
programming language.
Package: libsimgrid-dev
Architecture: any
Section: libdevel
......
/usr/lib/python3/dist-packages/simgrid.cpython*.so
......@@ -59,6 +59,11 @@ override_dh_auto_test:
# Make install and prepare package building
override_dh_auto_install:
dh_auto_install
# Manually install the python module, since upstream fails to do so
mkdir -p debian/tmp/usr/lib/python3/dist-packages
cp obj-*/lib/simgrid.cpython*.so debian/tmp/usr/lib/python3/dist-packages
chrpath -d debian/tmp/usr/lib/python3/dist-packages/simgrid.cpython*.so
# Fix chrpath of binaries
chrpath -d debian/tmp/usr/bin/graphicator
chrpath -d debian/tmp/usr/lib/simgrid/smpimain
mv debian/tmp/usr/bin/graphicator debian/tmp/usr/bin/simgrid-graphicator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment