Skip to content

Commit adbba3e

Browse files
committed
fix versioneer usage in pep 517 mode
1 parent 8ec6f41 commit adbba3e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.ci/common_setup.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ git submodule update --init
1717

1818
python -m venv ~/venv
1919
source ~/venv/bin/activate
20-
python -m pip install -U pip pytest wheel
20+
python -m pip install -U pip pytest wheel build
2121

2222
python -m pip install git+https://github.com/pymor/pymor.git#egg=pymor

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
import os
44
import pathlib
5-
import versioneer
5+
import sys
6+
# versioneer (+dependencies) does not work in a pep518/7 context w/o modification here
7+
sys.path.append(os.path.dirname(__file__))
8+
import versioneer # noqa
69

710
from setuptools import setup, Extension
811
from setuptools import find_packages

0 commit comments

Comments
 (0)