mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
bindings/python-cffi: copy version file into bindings dir
Attempt to avoid breaking "pip install ." As far as I can tell, we need to have a copy (not just a relative symlink) of the version file.
This commit is contained in:
parent
f981f5bae0
commit
3a42abb456
3 changed files with 3 additions and 7 deletions
|
@ -54,6 +54,7 @@ update-versions:
|
|||
sed -i -e "s/^__VERSION__[[:blank:]]*=.*$$/__VERSION__ = \'${VERSION}\'/" \
|
||||
-e "s/^SOVERSION[[:blank:]]*=.*$$/SOVERSION = \'${LIBNOTMUCH_VERSION_MAJOR}\'/" \
|
||||
${PV_FILE}
|
||||
cp version bindings/python-cffi
|
||||
|
||||
# We invoke make recursively only to force ordering of our phony
|
||||
# targets in the case of parallel invocation of make (-j).
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
import pathlib
|
||||
|
||||
import setuptools
|
||||
|
||||
|
||||
THIS_FILE = pathlib.Path(__file__).absolute()
|
||||
PROJECT_ROOT = THIS_FILE.parent.parent.parent
|
||||
with open(PROJECT_ROOT.joinpath('version')) as fp:
|
||||
with open('version') as fp:
|
||||
VERSION = fp.read().strip()
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
name='notmuch2',
|
||||
version=VERSION,
|
||||
|
|
1
bindings/python-cffi/version
Normal file
1
bindings/python-cffi/version
Normal file
|
@ -0,0 +1 @@
|
|||
0.30~rc2
|
Loading…
Reference in a new issue