8000 Merge pull request #1401 from stonebig/master · LeeXyan/winpython@a065889 · GitHub
[go: up one dir, main page]

Skip to content

Commit a065889

Browse files
authored
Merge pull request winpython#1401 from stonebig/master
remove Pyside2 option
2 parents 3043097 + b750a49 commit a065889

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

make.py

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ def __init__(
247247
r"python-([0-9\.rcba]*)((\.|\-)amd64)?\.(zip|zip)"
248248
)
249249
self.python_name = Path(self.python_fname).name[:-4]
250-
self.distname = "winUNKNOWN"
251-
self.python_fullversion = "winUNKNOWN"
252250

253251
@property
254252
def package_index_wiki(self):
@@ -277,8 +275,6 @@ def get_tool_path_dir(relpath):
277275
if Path(path).is_dir():
278276
return path
279277

280-
if get_tool_path_file(r"\t\SciTE.exe"):
281-
installed_tools += [("SciTE", "3.3.7")]
282278
juliapath = get_tool_path_dir(self.JULIA_PATH)
283279
if juliapath is not None:
284280
juliaver = utils.get_julia_version(juliapath)
@@ -371,7 +367,6 @@ def prepath(self):
371367
"""Return PATH contents to be prepend to the environment variable"""
372368
path = [
373369
r"Lib\site-packages\PyQt5",
374-
r"Lib\site-packages\PySide2",
375370
"", # Python root directory
376371
"DLLs",
377372
"Scripts",
@@ -776,19 +771,6 @@ def _create_batch_scripts_initial(self):
776771
if exist "%WINPYDIR%\Lib\site-packages\PyQt5\__init__.py" set QT_API=pyqt5
777772
778773
779-
rem ******************
780-
rem handle PySide2 if included
781-
rem ******************
782-
set tmp_pyz=%WINPYDIR%\Lib\site-packages\PySide2
783-
if not exist "%tmp_pyz%" goto pyside2_conf_exist
784-
set tmp_pyz=%tmp_pyz%\qt.conf
785-
if not exist "%tmp_pyz%" (
786-
echo [Paths]
787-
echo Prefix = .
788-
echo Binaries = .
789-
)>> "%tmp_pyz%"
790-
:pyside2_conf_exist
791-
792774
rem ******************
793775
rem handle PyQt5 if included
794776
rem ******************
@@ -897,20 +879,6 @@ def _create_batch_scripts_initial(self):
897879
if (Test-Path "$env:WINPYDIR\Lib\site-packages\PyQt5\__init__.py") { $env:QT_API = "pyqt5" }
898880
899881
900-
#####################
901-
### handle PySide2 if included
902-
#####################
903-
904-
$env:tmp_pyz = "$env:WINPYDIR\Lib\site-packages\PySide2"
905-
if (Test-Path "$env:tmp_pyz") {
906-
$env:tmp_pyz = "$env:tmp_pyz\qt.conf"
907-
if (-not (Test-Path "$env:tmp_pyz")) {
908-
"[Paths]"| Add-Content -Path $env:tmp_pyz
909-
"Prefix = ."| Add-Content -Path $env:tmp_pyz
910-
"Binaries = ."| Add-Content -Path $env:tmp_pyz
911-
}
912-
}
913-
914882
#####################
915883
### handle PyQt5 if included
916884
#####################
@@ -1476,11 +1444,9 @@ def make(
14761444
print(
14771445
self.python_fname,
14781446
self.python_name,
1479-
self.distname,
1480-
self.python_fullversion, # PyPy to delete or move
14811447
)
14821448
if my_winpydir is None:
1483-
self.winpydir = str(Path(self.target) / self.distname) # PyPy to delete
1449+
raise RuntimeError("WinPython base directory to create is undefined")
14841450
else:
14851451
self.winpydir = str(
14861452
Path(self.target) / my_winpydir

0 commit comments

Comments
 (0)
0