/[thuban]/branches/WIP-pyshapelib-bramz/setup.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/setup.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 554 by jonathan, Thu Mar 20 09:43:29 2003 UTC revision 555 by jonathan, Tue Mar 25 16:21:23 2003 UTC
# Line 756  cp extensions/pyshapelib/{COPYING,COPYIN Line 756  cp extensions/pyshapelib/{COPYING,COPYIN
756  cp extensions/pyprojection/{LICENSE,LICENSE.pyprojection}  cp extensions/pyprojection/{LICENSE,LICENSE.pyprojection}
757  '''  '''
758    
759    bdist_rpm_build_script = '''
760    env PATH="$PATH:%(prefix)s/lib/wxPython/bin:/usr/lib/wxPython/bin" CFLAGS="$RPM_OPT_FLAGS" %(python)s setup.py build
761    '''
762    
763  bdist_rpm_install_script = '''  bdist_rpm_install_script = '''
764  %(python)s setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES \  %(python)s setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES \
765     --prefix=%(prefix)s     --prefix=%(prefix)s
# Line 779  class thuban_bdist_rpm(bdist_rpm): Line 783  class thuban_bdist_rpm(bdist_rpm):
783          # scripts such as the python interpreter to use are only known          # scripts such as the python interpreter to use are only known
784          # then.          # then.
785          open("bdist_rpm_prep", "w").close()          open("bdist_rpm_prep", "w").close()
786            open("bdist_rpm_build", "w").close()
787          open("bdist_rpm_install", "w").close()          open("bdist_rpm_install", "w").close()
788          bdist_rpm.initialize_options(self)          bdist_rpm.initialize_options(self)
789    
# Line 786  class thuban_bdist_rpm(bdist_rpm): Line 791  class thuban_bdist_rpm(bdist_rpm):
791          # create the scripts for the spec-file. Now we know the python          # create the scripts for the spec-file. Now we know the python
792          # interpreter to use.          # interpreter to use.
793          open("bdist_rpm_prep", "w").write(bdist_rpm_prep_script)          open("bdist_rpm_prep", "w").write(bdist_rpm_prep_script)
794    
795            build = bdist_rpm_build_script % {"python": self.python,
796                                              "prefix": self.prefix}
797            open("bdist_rpm_build", "w").write(build)
798    
799          install = bdist_rpm_install_script % {"python": self.python,          install = bdist_rpm_install_script % {"python": self.python,
800                                                "prefix": self.prefix}                                                "prefix": self.prefix}
801          open("bdist_rpm_install", "w").write(install)          open("bdist_rpm_install", "w").write(install)

Legend:
Removed from v.554  
changed lines
  Added in v.555

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26