You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Installs pants launcher binary using the get-pants script.
6
-
## If $CI is true, assume it's installed already (through GHA), so just copy the wrapper script.
7
-
pants:
6
+
pants: ## Installs pants launcher binary using the get-pants script. If $CI is true, assume it's installed already (through GHA), so just copy the wrapper script.
8
7
ifeq ($(CI),true)
9
8
cp scripts/pantsw pants
10
9
else
11
10
./get-pants --bin-dir .
12
11
endif
13
12
14
13
15
-
## Packages and installs the python packages.
16
-
install-python-components: pants
14
+
install-python-components: pants ## Packages and installs the python packages.
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,8 +110,8 @@ With both files your project directory should look like this:
110
110
```
111
111
112
112
113
-
The code generator, `smithy-python-codegen`, hasn't been published yet, so
114
-
you'll need to build it yourself. To build and run the generator you will need
113
+
The code generator libraries have not been published yet, so
114
+
you'll need to build it yourself. To build and run the generator, you will need
115
115
the following prerequisites:
116
116
117
117
* Python 3.12 or newer
@@ -121,11 +121,23 @@ the following prerequisites:
121
121
* JDK 17 or newer
122
122
* make
123
123
124
-
Now run `make install-components` from the root of this repository. This will
124
+
Now, run `make install-components` from the root of this repository. This will
125
125
install the python dependencies in your environment and make the code generator
126
126
available locally. For more information on the underlying build process, see the
127
127
"Using repository tooling" section.
128
128
129
+
> [!TIP]
130
+
> To make development easier, run the following command from the root:
131
+
>```shell
132
+
> ./pants export --resolve=python-default
133
+
>```
134
+
> This will generate a [virtualenv](https://docs.python.org/3/library/venv.html) containing all python dependencies and tools needed to build this project.
135
+
> There should be some output in your terminal, denoting where pants created the environment.
0 commit comments