![]() |
2010-08-25
, 09:05
|
Posts: 16 |
Thanked: 3 times |
Joined on Dec 2009
@ Uithoorn, Netherlands
|
#2
|
![]() |
2010-08-25
, 09:31
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#3
|
#!/bin/sh -e if [ "$1" = configure ]; then ( files=$(dpkg -L autocompleteeditor | sed -n '/^\/opt\/AutoCompleteEditor\/.*\.py$/p') /usr/bin/python2.5 /usr/lib/python2.5/py_compile.py $files if grep -sq '^byte-compile[^#]*optimize' /etc/python/debian_config; then /usr/bin/python2.5 -O /usr/lib/python2.5/py_compile.py $files fi )
![]() |
2010-08-25
, 10:08
|
Posts: 144 |
Thanked: 134 times |
Joined on Jan 2010
@ Hamburg
|
#4
|
![]() |
2010-08-25
, 10:56
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#5
|
I let the .pyc files precompile in the following way:
I've added python-support to build_depends and depends in debian/control and dh_pysupport to debian/rules.
In debian/rules it is important to add the path of your installed app to dh_pysupport. e.g. "dh_pysupport /opt/your-package", because your module will not be installed in a standard public path.
![]() |
2010-08-25
, 12:35
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#6
|
The Following User Says Thank You to MohammadAG For This Useful Post: | ||
![]() |
2010-08-25
, 14:27
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#7
|
py_compilefiles is part of python-central, have a look at noor's source (debian/rules) and see how I use it, don't forget to add a command to delete the pyc files in clean
I tried to compile my python files in the following way:
/usr/bin/py_compilefiles $(CURDIR)/debian/www2sms/opt/www2sms/*.py
But the buildsystem complaints about missing py_compilefiles.
Now I found the following on the WIKI:
http://wiki.maemo.org/Performance_Co...python_Startup
Cheers
Bjoern
My website:
- olausson.de
- gallery.olausson.de
My Applications:Last edited by blubbi; 2010-08-25 at 14:30. Reason: Solved