On 06/29/2018 05:06 AM, Eli Schwartz via arch-dev-public wrote:
> Also I'd like to discuss what seems to me a common misconception in
> python packaging -- specifically, the use of cp -r source source-py2 and
> building both separately.
> 
> Best I can tell, this is primarily motivated by fear of py2/py3 specific
> bytecode being generated, but the thing is, this bytecode is all
> generated during package() inside of "$pkgdir" during the install step.
> You can check the contents of the build/ directory... it just copies the
> .py files and builds any ext_modules.

The main reason behind this (or why I started doing this) was sometimes
the tests run inside the sources tree made both versions' .pyc files
into the tree itself, and finally end up in the package. I had this
problem for several times and end up having the separated build
directories as template for new packages.

This seems not the case for most packages now, so I agree that it should
be avoided.

-- 
Regards,
Felix Yan

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to