From 90504cc4560cd0e315069852be2d31ca0e676b51 Mon Sep 17 00:00:00 2001 From: Gene Reese Date: Wed, 23 Feb 2022 16:58:55 -0600 Subject: [PATCH] - Fixed bug that did not specify the calling of the python3 binary to byte-compile python scripts before packaging --- root/usr/bin/togo | 4 ++-- spec/changelog | 4 ++++ spec/header | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/root/usr/bin/togo b/root/usr/bin/togo index 0e49231..84a031f 100755 --- a/root/usr/bin/togo +++ b/root/usr/bin/togo @@ -820,7 +820,7 @@ class Package(SQLObject): # Account for python scripts which need to be bytecompiled before inclusion compileall.compile_dir('root/', quiet=True) # Generate *.pyc - os.system("python -O -m compileall root/ > /dev/null 2>&1") # Generate *.pyo + os.system("/usr/bin/python3 -O -m compileall root/ > /dev/null 2>&1") # Generate *.pyo process = subprocess.Popen('find %s' % (self.package_path_root), shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, @@ -1187,4 +1187,4 @@ print("") try: del togo except ImportError: - pass \ No newline at end of file + pass diff --git a/spec/changelog b/spec/changelog index 169b314..f0d1f4e 100644 --- a/spec/changelog +++ b/spec/changelog @@ -1,4 +1,8 @@ %changelog +* Wed Feb 23 2021 Gene Reese +- Fixed bug that did not specify the calling of the python3 binary to +byte-compile python scripts before packaging + * Sun Nov 14 2021 Gene Reese - Fixed bug that sometimes occurred when excluding files from project diff --git a/spec/header b/spec/header index 301b5d0..dff7303 100644 --- a/spec/header +++ b/spec/header @@ -8,7 +8,7 @@ Summary: A quick, easy, and powerful RPM authoring tool Version: 3.0 # The release number of your package -Release: 4 +Release: 5 # Any license you wish to list License: GNU GPL