Skip to content
Snippets Groups Projects
Commit 441bc7bc authored by Piotr Gawron's avatar Piotr Gawron
Browse files

use python 3.9

parent 72b33296
No related branches found
No related tags found
1 merge request!425rpm package
......@@ -6,8 +6,6 @@ License: AGPLv3
URL: https://smasch.pages.uni.lu/
Group: Science
Packager: Piotr Gawron
Requires: python3 >= 3.6
Requires: virtualenv
Requires: libcurl-devel
Requires: libpng-devel
Requires: freetype-devel
......@@ -15,7 +13,7 @@ Requires: postgresql-libs
Requires: postgresql-devel
Requires: gcc
Requires: gcc-toolset-11
Requires: python3-devel
Requires: python39-devel
Requires: gnutls-devel
Requires: libjpeg-devel
Requires: pkg-config
......@@ -54,7 +52,6 @@ mv tmp-static/npm node_modules
rm smash/local_settings.py
rm -rf tmp-static
cd $ROOT_DIR
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/
cp rpm-files/smasch.py %{buildroot}%{_sysconfdir}/%{name}/
......@@ -87,7 +84,9 @@ if [ $1 -eq 1 ]; then
ln -sf %{_sysconfdir}/%{name}/smasch.py %{_exec_prefix}/lib/%{name}/smash/local_settings.py
virtualenv --python=python3 %{_exec_prefix}/lib/%{name}/env
python3.9 -m venv %{_exec_prefix}/lib/%{name}/env
source %{_exec_prefix}/lib/%{name}/env/bin/activate && pip install --upgrade pip -q --log $LOG_FILE
chown smasch:smasch %{_sysconfdir}/%{name}/smasch.py
chmod 0600 %{_sysconfdir}/%{name}/smasch.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment