code generation - Add generated Python file as part of build -


i generating python files in setup.py part of build process. these files should part of installation. have added code generator pre-build step (by implementing own command , overriding default build include this).

how copy generated files temporary directory build output? should copy myself using e.g. copy_file? if so, how path build output? or should declare part of build somehow?

i'd rather not clutter source directory tree generated files, hence prefer avoid copying files there , declaring them part of package.

i solved subclassing build_py instead of build. turns out build_py has build_lib attribute path "build" directory.

by looking @ source code think there no better way.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -