[Distutils] Re: Making setup.py run external command to build

2020-12-14 Thread Daniel Holth
enscons is an alternative to distutils. -- Distutils-SIG mailing list -- distutils-sig@python.org To unsubscribe send an email to distutils-sig-le...@python.org https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at

[Distutils] Re: Making setup.py run external command to build

2020-12-14 Thread Julian Smith
On Fri, 11 Dec 2020 10:32:13 -0500 Daniel Holth wrote: > I've been working on ensconced which lets you use a SConstruct to > build. It is easier than customizing distutils. > > https://github.com/dholth/pysdl2-cffi/blob/master/SConstruct is the > most code-generation-y project. Its build might

[Distutils] Re: Making setup.py run external command to build

2020-12-14 Thread Julian Smith
On Mon, 14 Dec 2020 10:25:41 -0500 Daniel Holth wrote: > enscons is an alternative to distutils. > Yes, i understand this. But enscons is for building python packages with scons. My project does not use scons, so i don't understand how it can help here. Unless... are you are suggesting that

[Distutils] Re: Making setup.py run external command to build

2020-12-14 Thread Daniel Holth
You would have to have a high tolerance for learning SCons. I'm aware that this is not for everyone. Then you could write a SConstruct with dependent tasks in a normal build system way. e.g. target = env.Command("a task", ...) platlib = env.Whl("platlib", target, root=".") whl =

[Distutils] Re: Making setup.py run external command to build

2020-12-14 Thread Dan Stromberg
I've had some luck with this sort of thing: https://stromberg.dnsalias.org/svn/binary-tree-mod/trunk/setup.py It just os.system's make, and then assumes everything is built thenceforth. On Fri, Dec 11, 2020 at 7:10 AM Julian Smith wrote: > Hello > > I have a project with a fairly involved