diff --git a/.drone.yml b/.drone.yml index 5540b61..7fb8b26 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,12 +1,12 @@ kind: pipeline type: docker -name: archlinux_build +name: archlinux clone: depth: 50 steps: - - name: build-arch + - name: archlinux_build image: archlinux_build pull: if-not-exists volumes: @@ -19,7 +19,7 @@ steps: # More than two makes ascee2 irresponsive for now - make -j2 - - name: test-arch + - name: archlinux_test image: archlinux_build pull: if-not-exists commands: @@ -40,7 +40,7 @@ volumes: --- kind: pipeline type: docker -name: ubuntu_build +name: ubuntu clone: depth: 3 @@ -50,7 +50,7 @@ volumes: path: /root/.ccache steps: - - name: build-ubuntu + - name: ubuntu_build image: ubuntu pull: if-not-exists volumes: @@ -58,18 +58,18 @@ steps: path: /root/.ccache commands: - apt update - - apt install -y git python3-pybind11 libopenblas-dev python3-pip python3-scipy libusb-1.0-0-dev libpulse-dev python3-h5py fftw-dev + - apt install -y git cmake python3-pybind11 libopenblas-dev python3-pip python3-scipy libusb-1.0-0-dev libpulse-dev python3-h5py fftw-dev - git submodule update --init --recursive - cmake . # More than two makes ascee2 irresponsive for now - make -j2 - - name: test-ubuntu - image: ubuntu_build + - name: ubuntu_test + image: ubuntu pull: if-not-exists commands: - apt update - - apt install -y python3-pytest fftw pulseaudio python3-pip python3-scipy + - apt install -y python3-pytest fftw pulseaudio python3-pip python3-scipy python3-h5py - pip install -r requirements.txt - pip install . - pytest-3 diff --git a/setup.py b/setup.py index ca521c8..66ceecd 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,8 @@ from setuptools import setup if 'Linux' in platform.platform(): ext_name_glob = 'lasp_cpp.cpython*' extensions = list(glob.glob('src/lasp/' + ext_name_glob)) + + # Split of path from file. ext_names = [os.path.split(a)[1] for a in extensions] print(extensions)