From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Proposal: 7.2b2 today |
Date: | 2002-03-20 19:47:59 |
Message-ID: | Pine.LNX.4.30.0203201437340.812-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
D'Arcy J.M. Cain writes:
> Do you have a reference for this? I tried looking for one but the only
> thing I could find was http://www.python.org/doc/1.6/dist/built-dist.html
> which suggests to me that they can be compiled before shipping which of
> course certainly involves moving them. In any case NetBSD does this
> patch before building and everything works there.
My reference is Automake. They go out of their way to compile the Python
files at the right time. We could use this as a model.
It's easy to determine that the time stamp appears to be encoded into the
compiled output file:
$ cat test.py
print "test"
$ python -c 'import py_compile; py_compile.compile("test.py", "test.pyc")'
$ md5sum test.pyc
a0e690271636fcbf067db628f9c7d0c3 test.pyc
$ python -c 'import py_compile; py_compile.compile("test.py", "test.pyc")'
$ md5sum test.pyc
a0e690271636fcbf067db628f9c7d0c3 test.pyc
$ touch test.py
$ python -c 'import py_compile; py_compile.compile("test.py", "test.pyc")'
$ md5sum test.pyc
1d78ae79994b102c89a14a2dd2addc55 test.pyc
What you need to do is to create the compiled files after you have
installed the original. Binary packaging probably preserves the time
stamps of the files, so that shouldn't be a problem. I withdraw that part
of the objection.
Also, I think if we add this feature, let's just make it the default and
not add another configure option for it.
--
Peter Eisentraut peter_e(at)gmx(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-03-20 20:08:53 | Re: Domain Support -- another round |
Previous Message | Tom Lane | 2002-03-20 19:47:56 | Re: [HACKERS] Fixes gram.y |