[Distutils] Finishing up PEP 517

Bill Deegan bill at baddogconsulting.com
Thu Jun 29 17:54:16 EDT 2017


Perhaps the better way to go about it than to call scons N times is to have
N variant dirs? where there's a variant dir for each build type you want,
and then youd call

scons build_wheel
which is aliased Alias('build_wheel','variant_dir for building wheel path')

Maybe bring this up on scons users mailing list and we'll see if it can be

On Wed, Jun 28, 2017 at 6:42 PM, Daniel Holth <dholth at gmail.com> wrote:

> I was able to implement PEP 517 build_wheel and build_sdist for enscons
> (on bitbucket), and a click cli calling any backend mentioned in
> pyproject.toml. Pretty simple. Not sure what to do with the config
> dictionary.
> SCons is not designed to be called twice in the same process with
> different arguments. It would be easier for me to know that pip would only
> invoke one PEP 517 function per subprocess, or to know all target
> directories in advance. Otherwise the enscons.api subprocess has to invoke
> SCons in another subprocess. SCons also builds all targets (wheel and sdist
> in same invocation) by default.
> "Alakazam!"
> On Wed, Jun 28, 2017 at 3:52 PM Thomas Kluyver <thomas at kluyver.me.uk>
> wrote:
>> On Wed, Jun 28, 2017, at 06:07 PM, Daniel Holth wrote:
>> Is there a prototype implementation of pep 517 yet?
>> - Flit has a PR with a prototype backend implementation, though it's not
>> up to date with all the changes the PEP has undergone. I'll update it when
>> we've agreed on a spec - it's still a fast moving target right now.
>> - I have a prototype module frontends could use to call hooks here:
>> https://github.com/takluyver/pep517 . It's mostly up to date, except for
>> the issue with using sdist as a fallback for copying files for a wheel.
>> Re: magic strings - like Nathaniel said, I haven't noticed them as part
>> of any proposal so far.
>> Thomas
>> _______________________________________________
>> Distutils-SIG maillist  -  Distutils-SIG at python.org
>> https://mail.python.org/mailman/listinfo/distutils-sig
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20170629/33c4b5b9/attachment.html>

More information about the Distutils-SIG mailing list