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
Post a Comment