Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut committed Feb 23, 2023
1 parent 625c142 commit 5680520
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Compiling Python3.11.0rc1 with Cosmopolitan
# Compiling Python3.11.0rc1 + Django 4.1.7 with Cosmopolitan Libc

This repo contains the source code of [Python 3.11.0rc1][py311] customized to
compile with [Cosmopolitan][cosmo] libc. **Meant for experimental purposes
only**.
compile with [Cosmopolitan][cosmo] libc. It also includes Django 4.1.7. **Meant
for experimental purposes only**.

# Steps to compile

Expand All @@ -13,28 +13,26 @@ cd ../
git clone https://github.com/jart/cosmopolitan
```

2. download the cosmopolitan amalgamation (`cosmopolitan.a`, `ape.lds` and
friends) somewhere
2. build the necessary artifacts from the cosmopolitan libc repo

```bash
cd ../
mkdir amalg
cd amalg/
wget https://justine.lol/cosmopolitan/cosmopolitan.zip
unzip cosmopolitan.zip
cd ../cosmopolitan
make -j4 o/cosmopolitan.h
make -j4 o//cosmopolitan.a
make -j4 o//third_party/sqlite3/libsqlite3.a
```

3. set the `COSMO_REPODIR` variable in `superconfigure` to point to wherever you
have the cosmopolitan repo (in this case `../cosmopolitan`)

4. set the `COSMO_LIBDIR` variable in `superconfigure` to point to wherever you
have the cosmopolitan amalgamation (in this case `../amalg`)
have the cosmopolitan build artifacts (in this case `../cosmopolitan/o`)

5. run `superconfigure`

6. run `make -j4`

7. run `./python.com`
7. run `./python.com -m django help`



Expand Down

0 comments on commit 5680520

Please sign in to comment.