Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Install script to build rpm under CentOS 5.x: $ python setup.py --ins…

…tall-script rpm-install-script.sh
  • Loading branch information...
commit bb29fe65d1421cfff613dbbfa8ffa0fbe2e01f89 1 parent 681905c
Mateus Caruccio authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 rpm-install-script.sh
View
8 rpm-install-script.sh
@@ -0,0 +1,8 @@
+python setup.py install --single-version-externally-managed --root="$RPM_BUILD_ROOT" --record=INSTALLED_FILES
+
+# Add .pyo files generated on CentOS 5.x
+# This is a workaround until someone comes with a better fix, like avoiding
+# /usr/lib/rpm/brp-python-bytecompile to run or convincing people that CentOS is pure evil.
+(cd "$RPM_BUILD_ROOT" && find -type f -name '*.pyc' | cut -b2-|sed -e 's/pyc$/pyo/') >> INSTALLED_FILES
+sort -u INSTALLED_FILES > .INSTALLED_FILES
+mv .INSTALLED_FILES INSTALLED_FILES
Please sign in to comment.
Something went wrong with that request. Please try again.