This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author madscientist
Recipients madscientist
Date 2019-03-28.22:14:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553811277.77.0.695389248612.issue36464@roundup.psfhosted.org>
In-reply-to
Content
Maybe no one cares anymore, but I've discovered that if I run make with -j the installation sometimes fails with this error:

install: mkdir /Users/build/.../dist/python/x86_64-darwin/lib: File exists

I believe it's because the targets altbininstall and libainstall as well as $(DESTSHARED) ($(BINLIBDEST)/lib-dynload) all contain a for loop which tries to create $(LIBDIR).  The makefile uses the install -d command to create directories and this command will fail if the directory already exists.

I haven't investigated the full dependency chain but at least two of the above targets don't have a relationship that forces make to avoid running them both at the same time.

Maybe a better solution would be to create a separate target like make-directories or something that creates all the directories and have the other targets depend on that one target.  Or something.

As it is, my MacOS builds fail about 1 in 5 times or similar.

Interestingly my Linux builds never fail.  Not sure if install works differently on Linux, or the timing is just different there.
History
Date User Action Args
2019-03-28 22:14:37madscientistsetrecipients: + madscientist
2019-03-28 22:14:37madscientistsetmessageid: <1553811277.77.0.695389248612.issue36464@roundup.psfhosted.org>
2019-03-28 22:14:37madscientistlinkissue36464 messages
2019-03-28 22:14:37madscientistcreate