Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
pymol
1_rpmroot.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1_rpmroot.patch of Package pymol
--- setup2.py.orig 2009-04-17 09:57:26.887027924 +0200 +++ setup2.py 2009-04-17 11:57:39.835033241 +0200 @@ -36,16 +36,24 @@ else: uninstall = 0 + try: pymol_launch = 3 import pymol + import getopt if not (os.path.exists("data") and os.path.exists("LICENSE")): print ' Please run "python setup2.py" from the PyMOL source directory.' else: + rpm_root = "" + opts, args = getopt.gnu_getopt(sys.argv[1:], "r:", ["root="]) + for opt, arg in opts: + if opt in ("-r", "--root"): + rpm_root = arg pymol_file = sys.modules['pymol'].__file__ if pymol_file[-4:]==".pyc": pymol_file = pymol_file[0:-1] + inst_pymol_file = re.sub("^" + rpm_root,"/",pymol_file) site_packages = os.path.split(os.path.split(pymol_file)[0])[0] @@ -107,7 +115,7 @@ if python_exe[0:2]=="./": python_exe=os.getcwd()+"/"+python_exe[2:] if sys.platform!='win32': - f.write(python_exe+" "+pymol_file+" \"$@\"\n") + f.write(python_exe+" "+inst_pymol_file+" \"$@\"\n") else: f.write('"%s" "%s" %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9\n'%(python_exe,pymol_file)) f.close()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor