From 25c73a30241b14a6f8080413cad862e072117d6b75e3d790829d203f79e6d623 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 17 Nov 2021 17:52:53 +0000 Subject: [PATCH] - Generated tables should get correct *.pyc files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calmjs.parse?expand=0&rev=12 --- python-calmjs.parse.changes | 5 +++++ python-calmjs.parse.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-calmjs.parse.changes b/python-calmjs.parse.changes index 14b998c..fd763f5 100644 --- a/python-calmjs.parse.changes +++ b/python-calmjs.parse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 17 17:52:41 UTC 2021 - Matej Cepl + +- Generated tables should get correct *.pyc files + ------------------------------------------------------------------- Tue Nov 16 15:28:20 UTC 2021 - Matej Cepl diff --git a/python-calmjs.parse.spec b/python-calmjs.parse.spec index 04ec8e9..05ebd86 100644 --- a/python-calmjs.parse.spec +++ b/python-calmjs.parse.spec @@ -43,12 +43,13 @@ ECMAScript; a near feature complete fork of slimit. %build export LANG=en_US.UTF-8 %python_build +%{python_expand PYTHONPATH=build/lib $python -m calmjs.parse.parsers.optimize +# $python -m compileall -j 0 -f build/ +} %install %python_install -%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m calmjs.parse.parsers.optimize -%fdupes %{buildroot}%{$python_sitelib} -} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG=en_US.UTF-8 @@ -57,6 +58,6 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc README.rst CHANGES.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/calmjs* %changelog