This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKG-INFO
72 lines (52 loc) · 2.64 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Metadata-Version: 2.1
Name: cairo-lang
Version: 0.9.0
Summary: Compiler and runner for the Cairo language
Home-page: https://cairo-lang.org/
Author: Starkware
Author-email: info@starkware.co
License: UNKNOWN
Description: # Introduction
[Cairo](https://cairo-lang.org/) is a programming language for writing provable programs.
# Documentation
The Cairo documentation consists of two parts: "Hello Cairo" and "How Cairo Works?".
Both parts can be found in https://cairo-lang.org/docs/.
We recommend starting from [Setting up the environment](https://cairo-lang.org/docs/quickstart.html).
# Installation instructions
You should be able to download the python package zip file directly from
[github](https://github.com/starkware-libs/cairo-lang/releases/tag/v0.5.2)
and install it using ``pip``.
See [Setting up the environment](https://cairo-lang.org/docs/quickstart.html).
However, if you want to build it yourself, you can build it from the git repository.
It is recommended to run the build inside a docker (as explained below),
since it guarantees that all the dependencies
are installed. Alternatively, you can try following the commands in the
[docker file](https://github.com/starkware-libs/cairo-lang/blob/master/Dockerfile).
## Building using the dockerfile
*Note*: This section is relevant only if you wish to build the Cairo python-package yourself,
rather than downloading it.
The root directory holds a dedicated Dockerfile, which automatically builds the package and runs
the unit tests on a simulated Ubuntu 18.04 environment.
You should have docker installed (see https://docs.docker.com/get-docker/).
Clone the repository and initialize the git submodules using:
```bash
> git clone git@github.com:starkware-libs/cairo-lang.git
> cd cairo-lang
```
Build the docker image:
```bash
> docker build --tag cairo .
```
If everything works, you should see
```bash
Successfully tagged cairo:latest
```
Once the docker image is built, you can fetch the python package zip file using:
```bash
> container_id=$(docker create cairo)
> docker cp ${container_id}:/app/cairo-lang-0.9.0.zip .
> docker rm -v ${container_id}
```
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown