def build(self): if os.path.exists(os.path.join(self.build_dir, 'compress.obj')) or os.path.exists(os.path.join(self.build_dir, 'compress.o')): utils.output("%s already built, skipping step." % BASENAME) return os.chdir(self.build_dir) ret = utils.execute_in_vs_environment('nmake /f win32/Makefile.msc') if ret != 0: utils.error("Could not build %s. Fix and try again." % BASENAME)
def build(self): if os.path.exists(os.path.join(self.build_dir, 'QtCore', 'QtCore.pyd')): utils.output("%s already built. Skipping build step." % BASENAME) return os.chdir(self.build_dir) ret = utils.execute_in_vs_environment('nmake') if ret != 0: utils.error("Could not build %s. Fix and try again." % BASENAME)
def build(self): test_file = os.path.join(self.build_dir, 'sipgen', 'sip.exe') if os.path.exists(test_file): utils.output("%s already installed, skipping step." % BASENAME) return os.chdir(self.build_dir) ret = utils.execute_in_vs_environment('nmake') if ret != 0: utils.error("Could not build %s. Fix and try again." % BASENAME)
def build(self): posix_file = os.path.join(config.QT_BUILD_BIN, 'libQtCore4.so') #TODO: nt_file = os.path.join(config.QT_BUILD_BIN, 'QtCore4.dll') if utils.file_exists(posix_file, nt_file): utils.output("%s already built. Skipping build step." % BASENAME) return os.chdir(self.build_dir) ret = utils.execute_in_vs_environment('nmake') if ret != 0: utils.error("Could not build %s. Fix and try again." % BASENAME)
def build(self): if os.path.exists(os.path.join( self.build_dir, 'compress.obj')) or os.path.exists( os.path.join(self.build_dir, 'compress.o')): utils.output("%s already built, skipping step." % BASENAME) return os.chdir(self.build_dir) ret = utils.execute_in_vs_environment('nmake /f win32/Makefile.msc') if ret != 0: utils.error("Could not build %s. Fix and try again." % BASENAME)
def install(self): PYTHON_DIR = os.path.dirname(config.PYTHON_EXECUTABLE) test_file = os.path.join(PYTHON_DIR, 'sip.exe') if os.path.exists(test_file): utils.output("%s already installed, skipping step." % BASENAME) return os.chdir(self.build_dir) ret = utils.execute_in_vs_environment('nmake install') if ret != 0: utils.error( "Could not install %s. Fix and try again." % BASENAME)
def install(self): if os.path.exists(os.path.join(self.site_packages, 'qt.py')): utils.output("%s already installed. Skipping step." % BASENAME) return os.chdir(self.build_dir) ret = utils.execute_in_vs_environment('nmake install') # We're creating a package named 'qt', so that we can import # qt stuff using 'from qt import QObject' file = open(os.path.join(self.site_packages, 'qt.py'), 'w') file.write("from PyQt4.Qt import *") file.close() if ret != 0: utils.error("Could not install %s. Fix and try again." % BASENAME)
def install(self): if os.path.exists(os.path.join(self.site_packages, 'qt.py')): utils.output("%s already installed. Skipping step." % BASENAME) return os.chdir(self.build_dir) ret = utils.execute_in_vs_environment('nmake install') # We're creating a package named 'qt', so that we can import # qt stuff using 'from qt import QObject' file = open(os.path.join(self.site_packages, 'qt.py'), 'w') file.write("from PyQt4.Qt import *") file.close() if ret != 0: utils.error( "Could not install %s. Fix and try again." % BASENAME)
def configure(self): if os.path.exists(os.path.join(self.build_dir, 'Makefile')): utils.output("%s build already configured." % BASENAME) return os.chdir(self.build_dir) pre_commands = 'SET PATH=%s;%%PATH%% &SET QTDIR=%s' % ( config.QT_BIN, # Note: for some reason we must # modify the PATH before applying # the Visual Studio environment, # or nmake will not be on the PATH config.QT_DIR) post_commands = 'configure -platform win32-msvc2008' communicate = 'o\ny\n' # Select open-source, say yes to agree ret = utils.execute_in_vs_environment(post_commands, pre_commands, communicate) if ret != 0: utils.error("Could not configure %s. Fix and try again." % BASENAME)
def configure(self): if os.path.exists(os.path.join(self.build_dir, 'Makefile')): #TODO utils.output("%s build already configured." % BASENAME) return os.chdir(self.build_dir) pre_commands = 'SET PATH=%s;%%PATH%% &SET QTDIR=%s' % ( config.QT_BIN, # Note: for some reason we must # modify the PATH before applying # the Visual Studio environment, # or nmake will not be on the PATH config.QT_DIR) post_commands = '%s configure.py -w' % config.PYTHON_EXECUTABLE communicate = 'yes\n' ret = utils.execute_in_vs_environment(post_commands, pre_commands, communicate) if ret != 0: utils.error("Could not configure %s. Fix and try again." % BASENAME)