Compile python source code from scratch by including a custom script
Budget: $50 – $120 USD
Download Python source code from here -> https://www.python.org/ftp/python/3.10.6/Python-3.10.6.tgz
Integrate a custom script (say custom.sh) into the above downloaded source code
Compile the source code and create python binary.
When you run python in command line, the custom.sh script must be executed first. If it passes, then continue with the usual python execution. If it fails, then exit with a custom message (for e.g. something like: "Condition failed. Exiting") and do not run python.
Here's an example:
Positive case
$ python
Python 3.10.6 (default, Apr 11 2022, 06:30:15)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-10.0.1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Negative case
$ python
Condition failed. Exiting!
Integrate a custom script (say custom.sh) into the above downloaded source code
Compile the source code and create python binary.
When you run python in command line, the custom.sh script must be executed first. If it passes, then continue with the usual python execution. If it fails, then exit with a custom message (for e.g. something like: "Condition failed. Exiting") and do not run python.
Here's an example:
Positive case
$ python
Python 3.10.6 (default, Apr 11 2022, 06:30:15)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-10.0.1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Negative case
$ python
Condition failed. Exiting!