Skip to content

Conversation

@richardkiss
Copy link
Contributor

This fixes the problem where the base name ends with something that already looks like a suffix.

In particular, the name chiabip158-0.13.dev3 was not getting the .tar.gz suffix.

@richardkiss
Copy link
Contributor Author

This workaround works for me in my SConstruct file.

# workaround of an enscons bug
# in some cases, such as "chiabip158-0.13.dev3" if the base name
# of the source distribution already looked like it had a suffix,
# the TarBuilder would not add the ".tar.gz" suffix. This
# hack fixes it. It needs to go after the enscons.generate is added
# to tools, but before the SDist is created

enscons.pytar.TarBuilder.ensure_suffix = True

richardkiss referenced this pull request in richardkiss/enscons.old Apr 6, 2020
@dholth dholth merged commit 5c02ff1 into dholth:master Apr 7, 2020
@dholth
Copy link
Owner

dholth commented Apr 7, 2020

Beautiful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants