コード例 #1
0
ファイル: pythoninstaller.py プロジェクト: totakke/pythonz
 def _patch(self):
     version = Version(self.pkg.version)
     common_patch_dir = os.path.join(PATH_PATCHES_ALL, "common")
     if is_python24(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python24")
         self._append_patch(patch_dir, ['patch-setup.py.diff'])
     elif is_python25(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python25")
         self._append_patch(patch_dir, ['patch-setup.py.diff', 'patch-svnversion.patch'])
     elif is_python26(version):
         self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python26")
         if version < '2.6.5':
             self._append_patch(patch_dir, ['patch-nosslv2-1.diff'])
         elif version < '2.6.6':
             self._append_patch(patch_dir, ['patch-nosslv2-2.diff'])
         elif version < '2.6.9':
             self._append_patch(patch_dir, ['patch-nosslv2-3.diff'])
     elif is_python27(version):
         if version < '2.7.2':
             self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python30(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python30")
         self._append_patch(patch_dir, ['patch-setup.py.diff',
                                        'patch-nosslv2.diff'])
     elif is_python31(version):
         if version < '3.1.4':
             self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python32(version):
         if version == '3.2':
             patch_dir = os.path.join(PATH_PATCHES_ALL, "python32")
             self._append_patch(patch_dir, ['patch-setup.py.diff'])
コード例 #2
0
 def _patch(self):
     version = Version(self.pkg.version)
     common_patch_dir = os.path.join(PATH_PATCHES_ALL, "common")
     if is_python24(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python24")
         self._append_patch(patch_dir, ['patch-setup.py.diff'])
     elif is_python25(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python25")
         self._append_patch(patch_dir, ['patch-setup.py.diff', 'patch-svnversion.patch'])
     elif is_python26(version):
         self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python26")
         if version < '2.6.5':
             self._append_patch(patch_dir, ['patch-nosslv2-1.diff'])
         elif version < '2.6.6':
             self._append_patch(patch_dir, ['patch-nosslv2-2.diff'])
         elif version < '2.6.9':
             self._append_patch(patch_dir, ['patch-nosslv2-3.diff'])
     elif is_python27(version):
         if version < '2.7.2':
             self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python30(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python30")
         self._append_patch(patch_dir, ['patch-setup.py.diff',
                                        'patch-nosslv2.diff'])
     elif is_python31(version):
         if version < '3.1.4':
             self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python32(version):
         if version == '3.2':
             patch_dir = os.path.join(PATH_PATCHES_ALL, "python32")
             self._append_patch(patch_dir, ['patch-setup.py.diff'])
コード例 #3
0
ファイル: pythoninstaller.py プロジェクト: cloverrose/pythonz
 def _patch(self):
     version = Version(self.pkg.version)
     common_patch_dir = os.path.join(PATH_PATCHES_ALL, "common")
     if is_python26(version) or is_python25(version) or is_python24(version):
         self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python27(version):
         if version < '2.7.2':
             self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python30(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python30")
         self._append_patch(patch_dir, ['patch-setup.py.diff'])
     elif is_python31(version):
         if version < '3.1.4':
             self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python32(version):
         if version == '3.2':
             patch_dir = os.path.join(PATH_PATCHES_ALL, "python32")
             self._append_patch(patch_dir, ['patch-setup.py.diff'])
コード例 #4
0
 def _patch(self):
     version = Version(self.pkg.version)
     common_patch_dir = os.path.join(PATH_PATCHES_ALL, "common")
     if is_python26(version) or is_python25(version) or is_python24(
             version):
         self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python27(version):
         if version < '2.7.2':
             self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python30(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python30")
         self._append_patch(patch_dir, ['patch-setup.py.diff'])
     elif is_python31(version):
         if version < '3.1.4':
             self._append_patch(common_patch_dir, ['patch-setup.py.diff'])
     elif is_python32(version):
         if version == '3.2':
             patch_dir = os.path.join(PATH_PATCHES_ALL, "python32")
             self._append_patch(patch_dir, ['patch-setup.py.diff'])
コード例 #5
0
ファイル: pythoninstaller.py プロジェクト: rayleyva/pythonz
 def _patch(self):
     version = Version(self.pkg.version)
     common_patch_dir = os.path.join(PATH_PATCHES_ALL, "common")
     if is_python24(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python24")
         self._append_patch(patch_dir, ["patch-setup.py.diff"])
     elif is_python25(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python25")
         self._append_patch(patch_dir, ["patch-setup.py.diff", "patch-svnversion.patch"])
     elif is_python26(version):
         self._append_patch(common_patch_dir, ["patch-setup.py.diff"])
     elif is_python27(version):
         if version < "2.7.2":
             self._append_patch(common_patch_dir, ["patch-setup.py.diff"])
     elif is_python30(version):
         patch_dir = os.path.join(PATH_PATCHES_ALL, "python30")
         self._append_patch(patch_dir, ["patch-setup.py.diff"])
     elif is_python31(version):
         if version < "3.1.4":
             self._append_patch(common_patch_dir, ["patch-setup.py.diff"])
     elif is_python32(version):
         if version == "3.2":
             patch_dir = os.path.join(PATH_PATCHES_ALL, "python32")
             self._append_patch(patch_dir, ["patch-setup.py.diff"])