files are not recognized by DistUtilsExtra.auto

Asked by ha_60 on 2011-01-01

Hi,

I use Quickly 0.6.1 when I make a package with "quickly package" I get this error :

WARNING: the following files are not recognized by DistUtilsExtra.auto:
  extract_strings.sh
  migraterepo/README
  migraterepo/migrate.cfg
  win32/amir.ico
  win32/amirsetup.nsi
  win32/gtkrc
WARNING: syntax errors in amir/calverter.py : invalid syntax (calverter.py, line 22)

How to can I tell the Quickly where to copy these files or folder?
and Quickly detect wrong "invalid syntax " in line of file that is empty. for example in calverter.py:line22 I have an empty line

Question information

Language:
English Edit question
Status:
Solved
For:
Quickly Edit question
Assignee:
No assignee Edit question
Solved by:
ha_60
Solved:
2011-01-07
Last query:
2011-01-07
Last reply:
2011-01-04
Michael Terry (mterry) said : #1

The invalid syntax issue may really be with the line right *above* 22. That is, it was expecting something on line 22 because line 21 didn't close all its parentheses.

For the files that aren't recognized, you may be interested in http://docs.python.org/distutils/sourcedist.html#manifest which is about how to specify files to be distriubted. DistUtilsExtra adds some extra 'magic' rules based on filenames and content, but I can't find good documentation for that.

ha_60 (hadi60) said : #2

thanks for your answer

for invalid syntax: my script works fine without any problem before and after of packaging and when I remove this line, Quickly works without any warning

thanks for link to documentation

and an other question. Quickly find the translation file and copy them to /usr/share/locale but if I install this package on a system which has not this locale installed, it will not work and you must run "sudo locale-gen your_locale"
how can I add this command to post installation script ?

Michael Terry (mterry) said : #3

You don't generally want to add that command to post installation scripts.

Locales are generated by installing Ubuntu language packs. If you install language-pack-fr, you'll have a French locale already. So if a user of your program wants to use French, they almost certainly will have already installed the French system language pack.

ha_60 (hadi60) said : #4

yes that's right.
but in my country people use English for own operating system language (really I don't know why :D ) and wants to some programs (for example accounting software) use Persian language.
for this reason I add the feature to my software, to people can change the language in setting section of software. if they change the language to "fa_IR" and Persian language pack not installed my application will failed.
but if I simply run "sudo locale-gen fa_IR" my application works fine without any dependences to Persian language pack

thanks a lot

ha_60 (hadi60) said : #5

I simply make a file "preinst" in debian folder and add my script to it

http://www.debian.org/doc/maint-guide/ch-dother.en.html