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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user