Skip to content

Commit

Permalink
Cairo v0.0.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
liorgold2 committed Mar 4, 2021
1 parent e4d44d2 commit 16c269b
Show file tree
Hide file tree
Showing 64 changed files with 5,802 additions and 40 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "repos/starkware-public"]
path = repos/starkware-public
url = [email protected]:starkware-libs/starkex-resources-wip.git
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ endif()
# Python library macro.
find_program(PYTHON "python3")

include("repos/starkware-public/cmake_utils/exe_rules.cmake")
include("repos/starkware-public/cmake_utils/python_rules.cmake")
include("repos/starkware-public/cmake_utils/pip_rules.cmake")
python_get_pip_deps(main_reqs
python3.7:${CMAKE_SOURCE_DIR}/scripts/requirements-deps.json
)
include("src/cmake_utils/cmake_rules.cmake")

# Repos needs to be first as it defines macros that are needed by src.
add_subdirectory(repos)
add_subdirectory(src)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ We recommend starting from [Setting up the environment](https://cairo-lang.org/d
# 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.0.2)
[github](https://github.com/starkware-libs/cairo-lang/releases/tag/v0.0.3)
and install it using ``pip``.
See [Setting up the environment](https://cairo-lang.org/docs/quickstart.html).

Expand Down Expand Up @@ -55,7 +55,7 @@ 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.0.2.zip .
> docker cp ${container_id}:/app/cairo-lang-0.0.3.zip .
> docker rm -v ${container_id}
```

4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mkdir -p build/Release
(
cd build/Release
cmake ../.. -DCMAKE_BUILD_TYPE=Release
make -j8 cairo_lang_venv
make -j8 cairo_lang_package_venv
)

VENV_SITE_DIR=build/Release/src/starkware/cairo/lang/cairo_lang_venv-site
VENV_SITE_DIR=build/Release/src/starkware/cairo/lang/cairo_lang_package_venv-site
cp src/starkware/cairo/lang/setup.py ${VENV_SITE_DIR}
cp src/starkware/cairo/lang/MANIFEST.in ${VENV_SITE_DIR}
cp scripts/requirements-gen.txt ${VENV_SITE_DIR}/requirements.txt
Expand Down
1 change: 0 additions & 1 deletion repos/CMakeLists.txt

This file was deleted.

1 change: 0 additions & 1 deletion repos/starkware-public
Submodule starkware-public deleted from 24bb51
Loading

0 comments on commit 16c269b

Please sign in to comment.