Skip to content

Commit

Permalink
Point setuptools to file
Browse files Browse the repository at this point in the history
setuptools_scm 5.0 considers a directory a direct target, rather than a
containing directory, which the build scripts (brokenly) assumed. A
better approach has been known for some time [2], but never implemented.

[1] https://github.com/pypa/setuptools_scm/blob/master/CHANGELOG.rst#v500
[2] pypa/setuptools-scm#131
  • Loading branch information
jokva committed Dec 13, 2020
1 parent 9738133 commit 8ddc013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def getversion():
if not 'SEGYIO_NO_GIT_VER' in os.environ and os.path.isdir(src('../.git')):
return {
'use_scm_version': {
'relative_to' : src(''),
'root': '..',
'relative_to' : __file__,
# write to ./python
'write_to' : os.path.join(src(''), versionfile),
}
Expand Down

0 comments on commit 8ddc013

Please sign in to comment.