Skip to content

remove all docsdir reference #1657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions generate_winpython_distros313_dot.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ set my_release_level=

rem list of installers to create separated per dot: False=none, .zip=zip, .7z=.7z, 7zip=auto-extractible 7z
set my_create_installer=7zip.7z.zip
set my_create_installer=7zip.zip

set my_preclear_build_directory=Yes

Expand All @@ -25,11 +26,9 @@ set my_source_dirs=C:\Winp\bd313\packages.win-amd64

set my_find_links=C:\Winp\packages.srcreq
set my_toolsdirs=C:\Winp\bdTools\Tools.dot
set my_docsdirs=C:\WinP\bdDocs\docs.dot

set my_install_options=--no-index --pre --trusted-host=None

call %~dp0\generate_a_winpython_distro.bat


pause
3 changes: 0 additions & 3 deletions generate_winpython_distros313_slim.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ set my_toolsdirs=C:\Winp\bdTools\Tools.dot
REM 2024-07-13:put back pandoc (so from 598Mo to 518Mo?)
set my_toolsdirs=C:\WinP\bdTools\tools64_pandoc_alone

set my_docsdirs=C:\WinP\bdDocs\docs.dot

set my_install_options=--no-index --pre --trusted-host=None

call %~dp0\generate_a_winpython_distro.bat


pause
5 changes: 2 additions & 3 deletions generate_winpython_distros313_wheel.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ set my_release_level=

rem list of installers to create separated per dot: False=none, .zip=zip, .7z=.7z, 7zip=auto-extractible 7z
set my_create_installer=7zip-mx5.7z-mx7.zip
set my_create_installer=.7z-mx7

set my_create_installer=.7z-mx9
set my_preclear_build_directory=Yes

set tmp_reqdir=%my_root_dir_for_builds%\bd%my_python_target%
Expand All @@ -26,12 +25,12 @@ set my_source_dirs=C:\Winp\bd313\packages.win-amd64

set my_find_links=C:\Winp\packages.srcreq
set my_toolsdirs=C:\Winp\bdTools\Tools.dot
set my_docsdirs=C:\WinP\bdDocs\docs.dot

set my_install_options=--no-index --pre --trusted-host=None

rem set addlockfile=dot

set wheelhousereq=C:\Winp\bd313\dot_requirements.txt
set wheelhousereq=C:\Winp\bd313\requirements64_whl.txt


Expand Down
10 changes: 2 additions & 8 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class WinPythonDistributionBuilder:
"""Builds a WinPython distribution."""

def __init__(self, build_number: int, release_level: str, target_directory: Path, wheels_directory: Path,
tools_directories: list[Path] = None, documentation_directories: list[Path] = None, verbose: bool = False,
tools_directories: list[Path] = None, verbose: bool = False,
base_directory: Path = None, install_options: list[str] = None, flavor: str = ""):
"""
Initializes the WinPythonDistributionBuilder.
Expand All @@ -68,7 +68,6 @@ def __init__(self, build_number: int, release_level: str, target_directory: Path
target_directory: The base directory where WinPython will be created.
wheels_directory: Directory containing wheel files for packages.
tools_directories: List of directories containing development tools to include.
documentation_directories: List of directories containing documentation to include.
verbose: Enable verbose output.
base_directory: Base directory for building (optional, for relative paths).
install_options: Additional pip install options.
Expand All @@ -79,7 +78,6 @@ def __init__(self, build_number: int, release_level: str, target_directory: Path
self.target_directory = Path(target_directory)
self.wheels_directory = Path(wheels_directory)
self.tools_directories = tools_directories or []
self.documentation_directories = documentation_directories or []
self.verbose = verbose
self.winpython_directory: Path | None = None
self.distribution: wppm.Distribution | None = None
Expand Down Expand Up @@ -242,7 +240,7 @@ def rebuild_winpython_package(source_directory: Path, target_directory: Path, ar
def make_all(build_number: int, release_level: str, pyver: str, architecture: int, basedir: Path,
verbose: bool = False, rebuild: bool = True, create_installer: str = "True", install_options=["--no-index"],
flavor: str = "", requirements: str | list[Path] = None, find_links: str | list[Path] = None,
source_dirs: Path = None, toolsdirs: str | list[Path] = None, docsdirs: str | list[Path] = None,
source_dirs: Path = None, toolsdirs: str | list[Path] = None,
python_target_release: str = None, # e.g. "37101" for 3.7.10
):
"""
Expand All @@ -262,14 +260,12 @@ def make_all(build_number: int, release_level: str, pyver: str, architecture: in
find_links: package directories (r'D:\Winpython\packages.srcreq')
source_dirs: the python.zip + rebuilt winpython wheel package directory
toolsdirs: Directory with development tools r'D:\WinPython\basedir34\t.Slim'
docsdirs: Directory with documentation r'D:\WinPython\basedir34\docs.Slim'
python_target_release: Target Python release (str).
"""
assert basedir is not None, "The *basedir* directory must be specified"
assert architecture in (32, 64)

tools_dirs_list = parse_list_argument(toolsdirs, ",")
docs_dirs_list = parse_list_argument(docsdirs, ",")
install_options_list = parse_list_argument(install_options, " ")
find_links_dirs_list = parse_list_argument(find_links, ",")
requirements_files_list = [Path(f) for f in parse_list_argument(requirements, ",") if f]
Expand All @@ -285,7 +281,6 @@ def make_all(build_number: int, release_level: str, pyver: str, architecture: in
builder = WinPythonDistributionBuilder(
build_number, release_level, build_directory, wheels_directory=source_dirs,
tools_directories=[Path(d) for d in tools_dirs_list],
documentation_directories=[Path(d) for d in docs_dirs_list],
verbose=verbose, base_directory=basedir,
install_options=install_options_list + find_links_options,
flavor=flavor
Expand Down Expand Up @@ -321,5 +316,4 @@ def make_all(build_number: int, release_level: str, pyver: str, architecture: in
find_links=r"D:\Winpython\packages.srcreq",
source_dirs=r"D:\WinPython\basedir34\packages.win-amd64",
toolsdirs=r"D:\WinPython\basedir34\t.Slim",
docsdirs=r"D:\WinPython\basedir34\docs.Slim",
)