Skip to content

Commit 9084b9c

Browse files
committed
change version number scheme for distutils
1 parent 5f0138b commit 9084b9c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
- Add `__slots__` optimization in Node class, should give performance improvement
66
- Fixed:
77
- Restore universal wheels
8-
- Fix bytes/str type incompatibility in setup.py
8+
- Bytes/str type incompatibility in setup.py
9+
- New version of distutils rejects version suffixes of `.postNN`, use `aNN` instead
910

1011
## Version 3.0.2
1112
- Fixed:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def version_info(target_version):
4242
p = subprocess.Popen('git describe --tag'.split(), stdout=subprocess.PIPE)
4343
git_describe = str(p.communicate()[0]).strip()
4444
release, build, commitish = git_describe.split('-')
45-
version = "{0}.post{1}".format(release, build)
45+
version = "{0}a{1}".format(target_version, build)
4646
else: # This is a RELEASE version
4747
version = target_version
4848
return {

0 commit comments

Comments
 (0)