diff --git a/build.py b/build.py index 2f6470c..b4dbea6 100644 --- a/build.py +++ b/build.py @@ -8,7 +8,7 @@ def run_cmake_in_docker(): # Run CMake inside the Docker container try: subprocess.run( - 'docker-compose exec -T build_service bash -c "cmake -S . -B build && cmake --build build"', + 'docker-compose run --rm ner-gcc-arm /bin/sh -c "make""', shell=True, check=True ) diff --git a/setup.py b/setup.py index e65a935..276fdbf 100644 --- a/setup.py +++ b/setup.py @@ -42,8 +42,6 @@ def modify_activation_scripts(venv_path): # Modify the activate script to start Docker container try: with open(activate_path, 'a') as activate_file: - activate_file.write("\n# Start Docker container when venv is activated\n") - activate_file.write("docker-compose up -d ner-gcc-arm\n") # aliases @@ -108,7 +106,7 @@ def main(): check_docker_and_rust() os_type = platform.system() - venv_path = ".venv" + venv_path = ".ner-venv" # Step 1: Create the Python virtual environment create_venv(venv_path)