File: setup-test.sh.in

package info (click to toggle)
opm-common 2025.10%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 96,920 kB
  • sloc: cpp: 291,772; python: 3,609; sh: 198; xml: 174; pascal: 136; makefile: 12
file content (17 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# This cmake template file can be used to create a small shell script which can
# be used to simplify the Python development process. The cmake step will create
# script setup-test.sh from this templated file - that script can be used to run
# the tests through the setup.py macinery without going through cmake/ctest.
#
# The script in question is purely a convenience for Python development, it is
# fully optional to use it, and it is not used by the main cmake based build
# system.

cp -r @PROJECT_SOURCE_DIR@/python @PROJECT_BINARY_DIR@
cd @PROJECT_BINARY_DIR@/python
export PYTHONPATH=@PROJECT_BINARY_DIR@/python:$PYTHONPATH
export LD_LIBRARY_PATH=@PROJECT_BINARY_DIR@/lib:@_setup_lib_dirs@:$LD_LIBRARY_PATH


@Python3_EXECUTABLE@ setup.py build_ext --dry-run --build-lib @PROJECT_BINARY_DIR@/python test