Issue1565644

classification
Title: Jython version same in HEAD as in previous release (2.2a1)
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: otmarhumbel Nosy List: kzuberi, nobody, otmarhumbel, pekka.klarck
Priority: normal Keywords:

Created on 2006-09-26.10:58:43 by pekka.klarck, last changed 2006-10-13.22:21:39 by otmarhumbel.

Files
File name Uploaded Description Edit Remove
1565644-patch.txt otmarhumbel, 2006-10-13.21:56:12 This patch makes snapshot builds a bit easier, and will display a different version and version_info
1565644-typo-patch.txt otmarhumbel, 2006-10-13.22:21:39 fixes a typo in build.xml
Messages
msg1252 (view) Author: Pekka Klärck (pekka.klarck) Date: 2006-09-26.10:58:43
I installed latest HEAD installer from [1] to test it
with our software. When I started it for the first time
I noticed that it has the version number identical to
the previoud 2.2 alpha 1 release.

Jython 2.2a1 on java1.5.0_06 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> import sys
>>> sys.version
'2.2a1'
>>> sys.version_info
(2, 2, 0, 'alpha', 1)

Because there has been quite a lot of changes after the
latest release it would help our testing if this HEAD
version could have some other version (basically
anything different would be ok) so that we could add
version checks into the code and have different code
for different Jython versions. We, for example, have a
workaround for a unicode bug 1538001 [2] and now that
it's fixed in HEAD we should use different code when
using this version.

[1] http://homepage.sunrise.ch/mysunrise/ohumbel/ 
[2] http://jython.org/bugs/1538001
msg1253 (view) Author: Nobody/Anonymous (nobody) Date: 2006-09-26.21:20:11
Logged In: NO 

The revision of the HEAD installer I used was 2916.
msg1254 (view) Author: Khalid Zuberi (kzuberi) Date: 2006-10-11.16:06:25
Logged In: YES 
user_id=18288


Not sure if the snapshots will grow into a common practice
for Jython, but note that cpython in 2.3 introduced a
'platform' module, and there is also patch to make it play
nicer with other python implementations:

 http://python.org/sf/1563842

Perhaps it would be handy in general to have this module
available in jython even in 2.2. Then at least one could use
 say platform.python_build as a differentiator.

- kz
 
msg1255 (view) Author: Pekka Klärck (pekka.klarck) Date: 2006-10-11.17:45:34
Logged In: YES 
user_id=1379331

'platform' module sounds like a great idea. Seeing the build
number would make recognizing the exact version pretty trivial.

Getting different result from sys.version and
sys.version_info in a snapshot than in the latest version
would still be nice. How CPython handling this?
msg1256 (view) Author: Oti Humbel (otmarhumbel) Date: 2006-10-13.22:00:21
Logged In: YES 
user_id=105844

Patch 198100: 1565644-patch.txt checked in.
Now testing.
It is in the nature of this patch that it has to be checked
in before real life tests are possible.
msg1257 (view) Author: Oti Humbel (otmarhumbel) Date: 2006-10-13.22:26:14
Logged In: YES 
user_id=105844

With patch 198102: 1565644-typo-patch.txt checked in,
snapshot builds can now be distinguished.

After a standalone installation, I got:
$ cd /stuff/temp/jython2950/
$ ls
jython.jar
$ java -jar jython.jar
Jython 2.2a2950 on java1.5.0_08 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.2a2950'
>>> sys.version_info
(2, 2, 0, 'snapshot', 2950)
>>> 

The 2950 snapshot build will be online soon.
History
Date User Action Args
2006-09-26 10:58:43pekka.klarckcreate