Skip to content

update python packaging to work with newer tool-chains#3102

Merged
davisking merged 1 commit intomasterfrom
update_python_stuff_for_newer_toolchains
Aug 11, 2025
Merged

update python packaging to work with newer tool-chains#3102
davisking merged 1 commit intomasterfrom
update_python_stuff_for_newer_toolchains

Conversation

@davisking
Copy link
Copy Markdown
Owner

E.g. tested on windows, newer version of visual studio and newest python version.

E.g. tested on windows, newer version of visual studio and newest python
version.
Comment on lines -34 to -36
if (MSVC)
include(${CMAKE_CURRENT_LIST_DIR}/../../dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake)
endif()
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes building fail in the very latest version of visual studio and the python interpreter in windows now.

Comment thread setup.py
from packaging.version import Version, parse as parse_version
from setuptools import find_packages, setup, Extension
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

distutils is no more in the latest python version

@davisking davisking merged commit 4cf8f57 into master Aug 11, 2025
8 checks passed
@davisking davisking deleted the update_python_stuff_for_newer_toolchains branch August 11, 2025 01:09
davisking added a commit to smu-sc-gj/dlib that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant