14
0
forked from pool/python-dill

- Update the source from github and use the correct folder for setup and tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=22
This commit is contained in:
2022-11-21 06:58:50 +00:00
committed by Git OBS Bridge
parent 84efe7951d
commit a5fc18d8f6
3 changed files with 9 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ objects, `dill` provides the ability to save the state of an interpreter
session in a single command.
%prep
%autosetup -p1 -n dill-%{version}
%autosetup -p1 -n dill-dill-%{version}
find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
%build
@@ -68,7 +68,7 @@ find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
%check
export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{_builddir}/dill-%{version}
export PYTHONPATH=%{_builddir}/dill-dill-%{version}
# Creative; copied from tox.ini
%python_exec dill/tests/__main__.py