Skip to content

Commit

Permalink
SM-1098: Organize venv section for python readme
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonhurst committed Feb 9, 2024
1 parent a8ddfa1 commit 582b09f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions languages/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ From the root of the repository:
npm run schemas # generate schemas.py

cd languages/python/
python3 -m venv .venv
maturin develop
```

Expand All @@ -35,9 +34,21 @@ Set the `ORGANIZATION_ID` and `ACCESS_TOKEN` environment variables to your organ
python3 ./example.py
```

## Using Virtual Environments
# Using Virtual Environments

If you would like to build & run the script within a virtual environment you can do the following.

## Build

```bash
npm run schemas # generate schemas.py

cd languages/python/
python3 -m venv .venv
maturin develop
```

If you would like to run the script within a virtual environment you can do the following.
## Run

```bash
source .venv/bin/activate
Expand Down

0 comments on commit 582b09f

Please sign in to comment.