-added 64-bit system support into the pypo install scripts
This commit is contained in:
parent
9f26a70ca9
commit
f6de7e5c31
4 changed files with 12 additions and 5 deletions
|
@ -12,6 +12,7 @@ import logging
|
||||||
import logging.config
|
import logging.config
|
||||||
import shutil
|
import shutil
|
||||||
import string
|
import string
|
||||||
|
import platform
|
||||||
from subprocess import Popen, PIPE, STDOUT
|
from subprocess import Popen, PIPE, STDOUT
|
||||||
|
|
||||||
if os.geteuid() != 0:
|
if os.geteuid() != 0:
|
||||||
|
@ -68,6 +69,17 @@ try:
|
||||||
print "Copying pypo files"
|
print "Copying pypo files"
|
||||||
shutil.copy("../scripts/silence-playlist.lsp", BASE_PATH+"files/basic")
|
shutil.copy("../scripts/silence-playlist.lsp", BASE_PATH+"files/basic")
|
||||||
shutil.copy("../scripts/silence.mp3", BASE_PATH+"files/basic")
|
shutil.copy("../scripts/silence.mp3", BASE_PATH+"files/basic")
|
||||||
|
|
||||||
|
if platform.architecture()[0] == '64bit':
|
||||||
|
print "Installing 64-bit liquidsoap binary"
|
||||||
|
shutil.copy("../liquidsoap/liquidsoap64", "../liquidsoap/liquidsoap")
|
||||||
|
elif platform.architecture()[0] == '32bit':
|
||||||
|
print "Installing 32-bit liquidsoap binary"
|
||||||
|
shutil.copy("../liquidsoap/liquidsoap32", "../liquidsoap/liquidsoap")
|
||||||
|
else:
|
||||||
|
print "Unknown system architecture."
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
#shutil.copy("../pypo-cli.py", BASE_PATH+"bin")
|
#shutil.copy("../pypo-cli.py", BASE_PATH+"bin")
|
||||||
#shutil.copy("../pypo-notify.py", BASE_PATH+"bin")
|
#shutil.copy("../pypo-notify.py", BASE_PATH+"bin")
|
||||||
#shutil.copy("../logging.cfg", BASE_PATH+"bin")
|
#shutil.copy("../logging.cfg", BASE_PATH+"bin")
|
||||||
|
|
BIN
pypo/liquidsoap/liquidsoap64
Executable file
BIN
pypo/liquidsoap/liquidsoap64
Executable file
Binary file not shown.
|
@ -687,7 +687,6 @@ class Playout:
|
||||||
logger.debug(line.strip())
|
logger.debug(line.strip())
|
||||||
tn.write(self.export_source + '.push %s' % (line.strip()))
|
tn.write(self.export_source + '.push %s' % (line.strip()))
|
||||||
tn.write("\n")
|
tn.write("\n")
|
||||||
#time.sleep(0.1)
|
|
||||||
|
|
||||||
tn.write("exit\n")
|
tn.write("exit\n")
|
||||||
logger.debug(tn.read_all())
|
logger.debug(tn.read_all())
|
||||||
|
@ -702,10 +701,6 @@ class Playout:
|
||||||
logger.debug("Sending additional data to liquidsoap: "+liquidsoap_data)
|
logger.debug("Sending additional data to liquidsoap: "+liquidsoap_data)
|
||||||
tn.write("vars.pypo_data "+liquidsoap_data+"\n")
|
tn.write("vars.pypo_data "+liquidsoap_data+"\n")
|
||||||
|
|
||||||
# if(int(ptype) < 5):
|
|
||||||
# tn.write(self.export_source + '.flip')
|
|
||||||
# tn.write("\n")
|
|
||||||
|
|
||||||
tn.write(self.export_source + '.flip')
|
tn.write(self.export_source + '.flip')
|
||||||
tn.write("\n")
|
tn.write("\n")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue