You can carry out local development of Python functions repositories, allowing for high-speed iteration in your customized environment.
git clone <URI>
on your local machine in a directory of your choice. Then use the cd
command to navigate to the repository.JAVA_HOME
points to the right Java installation. Java 17 can be downloaded from the Oracle website ↗.Setting the JAVA_HOME
environment variable based on your operating system:
SETX JAVA_HOME -m "<java-home-dir>"
in PowerShell. This modifies the system environment variable and you will need to restart the shell for changes to take effect. Alternatively you can run [System.Environment]::SetEnvironmentVariable("JAVA_HOME", "<java-home-dir>")
to set JAVA_HOME
in the running process.export JAVA_HOME=<java-home-dir>
.CI
, JEMMA
, and CA
are not set./usr/sbin/softwareupdate --install-rosetta --agree-to-license
in the terminal../gradlew vsCode
.To set up a Python development environment, run the command ./gradlew condaDevelop
.
Ensure you have JetBrains PyCharm ↗ installed locally.
Import the project following the steps outlined here ↗.
Choose Add New Interpreter from the Python Interpreter selector ↗ on the status bar.
In the left-hand pane of the Add Python Interpreter dialog, select Virtualenv Environment.
Choose Existing environment and set the Interpreter field to the Python interpreter from your Conda environment.
<your-conda-environment-dir>/bin/python
.<your-conda-environment-dir>\python.exe
.Depending on whether the test plugin is enabled, the installed environments would include ./python-functions/build/conda/run-env
, ./python-functions/build/conda/test-env
, or both. You should pick the test environment if you plan on running tests.