Distutils question

  • Thread starter Laszlo Zsolt Nagy
  • Start date
L

Laszlo Zsolt Nagy

How how can I install my .mo files from a distutil script into its
default location?

sys.prefix + os.sep + 'share' + os.sep + 'locale'
 
P

Peter Hansen

Laszlo said:
How how can I install my .mo files from a distutil script into its
default location?

sys.prefix + os.sep + 'share' + os.sep + 'locale'

I can't answer the first question, but the latter should be written this
way instead

os.path.join(sys.prefix, 'share', 'locale')

for greater portability and maintainability.

-Peter
 
L

Laszlo Zsolt Nagy

Peter said:
I can't answer the first question, but the latter should be written this
way instead

os.path.join(sys.prefix, 'share', 'locale')

for greater portability and maintainability.
Of course. :)

I know that Peter is a big Python guru, and he could not answer the
question. I also read the archives in the i18n-sig. There were questions
about the same problem and the answer was that there is no standard way
to include message files with a distribution. I would like to propose an
extension in distutils.

Most of the packages contain messages and they should be i18n-ed. The
proposal itself contains two parts.

1. We should extend the distutils interface to allow message files to be
installed to the default location

os.path.join(sys.prefix, 'share', 'locale')

2. Domain names for packages should be somehow standardized, especially
in conjunction with PEP 301 (Package Index and Metadata for Distutils).
Somehow, the package name and version should identify the message files
that can be used.

Les
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,315
Members
48,000
Latest member
SusannahSt

Latest Threads

Top