Skip to content
Snippets Groups Projects
Commit 4a034008 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix path

parent 0be6f5f3
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,7 @@ ADD install_curl.sh install_curl.sh
RUN ./install_curl.sh /curl
RUN apt install -y python-pip python3-pip && pip install --upgrade cython && pip3 install --upgrade cython
RUN pip3 install sphinx
ADD build.sh /bin/build.sh
#!/usr/bin/env bash
cd /asapo/build
cmake -DCMAKE_BUILD_TYPE="Release" -DLIBCURL_DIR=/curl ..
cmake -DCMAKE_BUILD_TYPE="Release" -DLIBCURL_DIR=/curl -DBUILD_PYTHON_DOCS=ON ..
cd worker && make
cd ../producer && make
cd ../sphinx && make
......@@ -19,8 +19,8 @@
import os
import sys
sys.path.insert(0, '/home/yakubov/projects/asapo/cmake-build-debug/worker/api/python')
sys.path.insert(0, '/home/yakubov/projects/asapo/cmake-build-debug/producer/api/python')
sys.path.insert(0, os.path.abspath('../../../worker/api/python'))
sys.path.insert(0, os.path.abspath('../../../producer/api/python'))
import asapo_producer
......
......@@ -16,10 +16,10 @@ set (ASAPO_WORKER_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../cpp/include)
configure_files(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} @ONLY)
ADD_CUSTOM_TARGET(python-lib2 ALL
COMMAND python setup.py build_ext --inplace)
COMMAND python setup.py build_ext --inplace --force)
ADD_CUSTOM_TARGET(python-lib3 ALL
COMMAND python3 setup.py build_ext --inplace)
COMMAND python3 setup.py build_ext --inplace --force)
ADD_DEPENDENCIES(python-lib2 asapo-worker)
ADD_DEPENDENCIES(python-lib3 asapo-worker)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment