Python 3.13, site packages and other updates

Official Announcements about Source.Python.
User avatar
Ayuto
Project Leader
Posts: 2208
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Python 3.13, site packages and other updates

Postby Ayuto » Sat Apr 19, 2025 10:29 pm

Hello everyone,

It's been some time since the last announcement, but due to recent events and changes, another one is due.

First of all: Two months ago, a Valve update made Source.Python unusable for some games (CS:S, TF2, DOD:S). Actually, Source.Python should have just been recompiled after the SDK update. However, the problem was that Source.Python used a fairly old C++ standard and this was not compatible with the new SDK. To adapt the C++ standard, new GCC/Visual Studio versions were required. However, this led to problems with the precompiled libraries (Python, Boost, DynamicHooks, SDK, etc.). The libraries therefore had to be recompiled and it made sense to update everything straight away.

So, Source.Python is now running Python 3.13, all site packages have been updated and some issues and pull requests from Github have been fixed or merged and the games are working again!
From 3.6 to 3.13. This is a huge leap of about 8 years of development work on Python. A lot has changed in Python during this time and it's worth taking a look at the official site:
https://docs.python.org/3/whatsnew/3.13.html

Most of you have probably done this from time to time and used newer Python versions in other projects. But if not, check out the changes of the last years. There are some really cool new features.

Because we have also updated the site packages, there are some incompatibilities. I only noticed most of them in the “path” module. The module is now a package and some functions and properties are now called differently:
isdir -> is_dir
isfile -> is_file
ext -> suffix
namebase -> stem
listdir -> iterdir

There are certainly some other adjustments that we need to make in Source.Python or the plugins.
If you find them, feel free to post them here to help others migrating their plugins.

Anyway, we are now pretty up to date. Have fun!
User avatar
satoon101
Project Leader
Posts: 2701
Joined: Sat Jul 07, 2012 1:59 am

Re: Python 3.13, site packages and other updates

Postby satoon101 » Sun Apr 20, 2025 2:12 pm

Awesome job!! Thank you for all the hard work!!
Image
ae2x
Member
Posts: 31
Joined: Mon Apr 09, 2018 4:26 pm

Re: Python 3.13, site packages and other updates

Postby ae2x » Tue Apr 22, 2025 10:40 pm

Thats is awsome good job guys!!

Return to “News & Announcements”

Who is online

Users browsing this forum: No registered users and 100 guests