Distutils question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laszlo Zsolt Nagy

    #1

    Distutils question

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

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


  • Peter Hansen

    #2
    Re: Distutils question

    Laszlo Zsolt Nagy wrote:[color=blue]
    > How how can I install my .mo files from a distutil script into its
    > default location?
    >
    > sys.prefix + os.sep + 'share' + os.sep + 'locale'[/color]

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

    os.path.join(sy s.prefix, 'share', 'locale')

    for greater portability and maintainability .

    -Peter

    Comment

    • Laszlo Zsolt Nagy

      #3
      Distutils extension proposal (was: Re: Distutils question)

      Peter Hansen wrote:
      [color=blue][color=green]
      >>How how can I install my .mo files from a distutil script into its
      >>default location?
      >>
      >>sys.prefix + os.sep + 'share' + os.sep + 'locale'
      >>
      >>[/color]
      >
      >I can't answer the first question, but the latter should be written this
      >way instead
      >
      > os.path.join(sy s.prefix, 'share', 'locale')
      >
      >for greater portability and maintainability .
      >
      >[/color]
      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(sy s.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

      Comment

      Working...