We’ve launched a new series of Delphi-Python EcoSystem update posts with the first Stable Python Environments blog post. This post will cover more development updates we had in the meantime, not just for development on Windows but for other platforms too. This update focuses on both the Python4Delphi (P4D) and the PythonEnvironments projects.
Python4Delphi (P4D) is the core technology/package that powers the whole Delphi-Python EcoSystem. After assessing the P4D in great detail, we are trying to solve the essence of why the P4D project started with the PythonEnvironments project. PythonEnvironments provides a set of Design-time components to embed a desirable Python Environment into your Delphi application using the readily available Python embeddable very easily.
Our Delphi-Python EcoSystem can be summarized using the below figure:
The latest updates in the Python4Delphi and PythonEnvironments projects are:
Compile Python4Delphi (P4D) for Linux
As a first step, please set up your Delphi IDE to build Linux applications. If you’re on Windows 11, we have a great video tutorial by Jim McKeeth to set up a Linux environment using WSL and run Delphi-built Linux GUI applications on WSL for Linux.
Then, you can choose the Linux target platform to build the P4D using the newly created project file: P4DLinuxComponentSuite.groupproj
at: github.com/Embarcadero/python4delphi/tree/master/Packages/Delphi. After that, add the created *.dcu
files folder path to the Library
path of the Linux platform. Now you can use the P4D for Linux as a dependency for other projects that you want to compile for the Linux target platform.
Our goal here is that a Delphi developer should be able to create and compile the Linux applications using P4D as easily as possible.
Created the P4D and PythonEnvironments Installation Wikis
We created detailed and step-by-step installation tutorials for both Python4Delphi (P4D) and PythonEnvironments at:
P4D Installation tutorial: github.com/Embarcadero/python4delphi/wiki/Installation
PythonEnvironments Installation tutorial: github.com/Embarcadero/PythonEnviroments/wiki/Installation
Successful Backward Compatility of PythonEnvironments until Delphi 10.4
PythonEnvironments faced an issue where it only had support for Delphi 11. Then we solved this with our latest commit to the GitHub repository. PythonEnvironments now supports the Delphi Sydney (10.4) and later. With this you get to use the power of PythonEnvironments using the Delphi Community Edition.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition