Skip to content

Commit

Permalink
- Fixed bug that did not specify the calling of the python3 binary to
Browse files Browse the repository at this point in the history
byte-compile python scripts before packaging
  • Loading branch information
Gene Reese committed Feb 23, 2022
1 parent 36196e7 commit 90504cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions root/usr/bin/togo
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1187,4 +1187,4 @@ print("")
try:
del togo
except ImportError:
pass
pass
4 changes: 4 additions & 0 deletions spec/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
%changelog
* Wed Feb 23 2021 Gene Reese <[email protected]>
- 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 <[email protected]>
- Fixed bug that sometimes occurred when excluding files from project

Expand Down
2 changes: 1 addition & 1 deletion spec/header
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90504cc

Please sign in to comment.