Closed gricey432 closed 7 years ago
I guess the backport of pathlib
doesn't have that parameter?
https://docs.python.org/3/library/pathlib.html#pathlib.Path.mkdir
https://pypi.python.org/pypi/pathlib/
Edit: Yup, looks like it https://bitbucket.org/pitrou/pathlib/src/11f10035e7fb51622e65c71ffdbd6d241e31de74/pathlib.py?at=pep428&fileviewer=file-view-default#pathlib.py-1101
We should probably switch to pathlib2 for the backport; hopefully that does have the parameter.
It looks like pathlib2 does have it https://github.com/mcmtroffaes/pathlib2/blob/develop/pathlib2.py#L1430
Great :-) Anyone want to do a PR?
I was writing one but I couldn't see how to run it locally cause there's no setup.py
so I figured I'd have another look later
That commit should do it. The packaging uses flit, which does make it a bit awkward on Python 2, but I'm planning to make Pynsist require Python 3 soon anyway (#99).
I've stuck a new release (1.12) up with this fixed.
Commit 7c70637 uses
exist_ok
which isn't backward compatible to 2.7