Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 22nd September 2020 starting at approximately 9am MST.It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please address any comments, questions, or concerns to computing-help@igwn.org.

Commit e15ef3b3 authored by Kipp Cannon's avatar Kipp Cannon

do not run tests as part of the build

parent a009ff76
......@@ -4,7 +4,3 @@ export PYBUILD_NAME := ligo-segments
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="make -C {dir}/test PYTHON={interpreter}" dh_auto_test
......@@ -58,21 +58,6 @@ infinity object used to define semi-infinite and infinite segments.
%py2_install
%py3_install
%check
cd test
# hack the python site to read from the build path:
echo "import site; site.addsitedir('$RPM_BUILD_ROOT%{python2_sitearch}')" > $RPM_BUILD_ROOT%{python2_sitearch}/sitecustomize.py
echo "import site; site.addsitedir('$RPM_BUILD_ROOT%{python3_sitearch}')" > $RPM_BUILD_ROOT%{python3_sitearch}/sitecustomize.py
# run the tests
make check PYTHON=%{__python2} PYTHONPATH="$RPM_BUILD_ROOT%{python2_sitearch}"
make check PYTHON=%{__python3} PYTHONPATH="$RPM_BUILD_ROOT%{python3_sitearch}"
# clean up the sitecustomize hack
rm -v \
$RPM_BUILD_ROOT%{python2_sitearch}/sitecustomize.py* \
$RPM_BUILD_ROOT%{python3_sitearch}/sitecustomize.py* \
$RPM_BUILD_ROOT%{python3_sitearch}/__pycache__/sitecustomize.*.pyc
rm -vd $RPM_BUILD_ROOT%{python3_sitearch}/__pycache__/
%files -n python2-%{srcname}
%license LICENSE
%doc README.rst
......
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