creating .pyo with make
Yann Leboulanger
yann.le_boulanger at u-paris10.fr
Wed Jan 23 18:08:15 EST 2008
Yann Leboulanger wrote:
> Hi,
>
> I use autoconf / automake to manage my python project, and I'l like make
> / make install to create / install .pyo files instead of .py files.
>
> Is there something I should add to my Makefile.am files to do that? Or
> should I do all that myself with py_compile module?
>
> Are there some examples somewhere with autotools?
>
> Thanks for your help
Hehe replying to myself. It seems I just have to replace
project_DATA = $(srcdir)/*.py
by
project_PYTHON = $(srcdir)/*.py
Then when I do make install, it installs .py, .pyc and .pyo.
Would it be possible to install only .pyo? Is it a good idea?
--
Yann
More information about the Python-list
mailing list