Skip to content

Commit 3f301a2

Browse files
authored
fix: adding readme on make retrieve (#1297)
1 parent e99a51c commit 3f301a2

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

dependency/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Dependency
2+
3+
Pre-compiled distributions of Python are provided for the Paketo stacks (i.e.
4+
`io.buildpacks.stack.jammy` and `io.buildpacks.stacks.bionic`).
5+
6+
Source distributions of Python are provided for all other linux stacks.
7+
8+
This directory contains scripts and GitHub Actions to facilitate the following:
9+
* Identifying when there is a new version of Python available
10+
* Compiling Python against all supported stacks
11+
* Packing the Python source for use in all other stacks (i.e. where we do not
12+
provide pre-compiled binaries of python)
13+
14+
## Running locally
15+
16+
Running the steps locally can be useful for iterating on the compilation process
17+
(e.g. changing compilation options) as well as debugging.
18+
19+
### Retrieval
20+
21+
Retrieve latest versions with:
22+
23+
```
24+
cd ./retrieval
25+
26+
go run main.go \
27+
--buildpack-toml-path ../../buildpack.toml \
28+
--output /path/to/retrieved.json
29+
```
30+
31+
See [retrieval/README.md](retrieval/README.md) for more details.
32+
33+
### Compilation
34+
35+
To compile on Ubuntu 22.04 (Jammy):
36+
37+
```
38+
docker build \
39+
--tag cpython-compilation-jammy \
40+
--file ./actions/compile/jammy.Dockerfile \
41+
./actions/compile
42+
43+
output_dir=$(mktemp -d)
44+
45+
docker run \
46+
--volume $output_dir:/tmp/compilation \
47+
cpython-compilation-jammy \
48+
--outputDir /tmp/compilation \
49+
--target jammy \
50+
--version 3.10.7
51+
```
52+
53+
See [actions/compile/README.md](actions/compile/README.md) for more details.

0 commit comments

Comments
 (0)