Skip to content

Commit

Permalink
Merge pull request #1262 from rohaquinlop/issue-1249
Browse files Browse the repository at this point in the history
feat(doc): #1249 rm makepythonversion
  • Loading branch information
dsalaza4 authored Jan 11, 2024
2 parents 48bc0f4 + e1cc7cc commit 46c25da
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions docs/src/api/extensions/python.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,3 @@
## makePythonVersion

Get a specific Python interpreter.

Types:

- makePythonVersion: `SupportedVersions -> Derivation`
- `SupportedVersions` = `enum ["3.9" "3.10" "3.11" "3.12"]`
Supported Python versions.

Example:

=== "main.nix"

```nix
# /path/to/my/project/makes/example/main.nix
{
makePythonVersion,
makeScript,
...
}:
makeScript {
entrypoint = ''
python --version
'';
name = "example";
searchPaths = {
bin = [ (makePythonVersion "3.9") ];
};
}
```

=== "Invocation"

```bash
$ m . /example

Python 3.9
```

## makePythonEnvironment

Create a Python virtual environment using
Expand Down

0 comments on commit 46c25da

Please sign in to comment.