From d77d134c100194027d6b1f7bbc996043679e5fda Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Mon, 19 Oct 2020 12:50:23 +0200 Subject: [PATCH] Run scripts in an isolated environment (#1889080) --- python-rpm-generators.spec | 5 ++++- pythonbundles.py | 2 +- pythondistdeps.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/python-rpm-generators.spec b/python-rpm-generators.spec index 5da4f46..60811e5 100644 --- a/python-rpm-generators.spec +++ b/python-rpm-generators.spec @@ -1,7 +1,7 @@ Name: python-rpm-generators Summary: Dependency generators for Python RPMs Version: 11 -Release: 11%{?dist} +Release: 12%{?dist} # Originally all those files were part of RPM, so license is kept here License: GPLv2+ @@ -47,6 +47,9 @@ install -Dpm0755 -t %{buildroot}%{_rpmconfigdir} *.py %{_rpmconfigdir}/pythonbundles.py %changelog +* Mon Oct 19 2020 Tomas Orsava - 11-12 +- Run scripts in an isolated Python environment (#1889080) + * Wed Jul 29 2020 Fedora Release Engineering - 11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/pythonbundles.py b/pythonbundles.py index 5093dff..96e817e 100644 --- a/pythonbundles.py +++ b/pythonbundles.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 -B +#!/usr/bin/python3 -sB # (imports pythondistdeps from /usr/lib/rpm, hence -B) # # This program is free software. diff --git a/pythondistdeps.py b/pythondistdeps.py index 1ca576b..70e08b8 100755 --- a/pythondistdeps.py +++ b/pythondistdeps.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/python3 -s # -*- coding: utf-8 -*- # # Copyright 2010 Per Øyvind Karlsen