Skip to content

Commit

Permalink
fix: update scripts to compile the extension for ladder
Browse files Browse the repository at this point in the history
  • Loading branch information
spudde123 committed Sep 10, 2023
1 parent eff6f1c commit 161bd44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ladder_build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
docker build . -f ./ladder_build/Dockerfile -t maextbuild
id=$(docker create maextbuild)
docker cp $id:./mapanalyzerext.so ./MapAnalyzer/cext/mapanalyzerext.so
docker cp $id:./mapanalyzerext.so ./map_analyzer/cext/mapanalyzerext.so
docker rm -v $id

7 changes: 4 additions & 3 deletions ladder_build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM python:3.9.5
FROM python:3.11.5

COPY . .

RUN python3.9 setup.py build_ext --inplace
RUN mv mapanalyzerext.*.so mapanalyzerext.so
RUN pip install poetry==1.6.1
RUN poetry install
RUN mv build/lib.linux*/mapanalyzerext.*.so mapanalyzerext.so

CMD ["/bin/bash"]

0 comments on commit 161bd44

Please sign in to comment.