Issue1668843

classification
Title: imp.compileSource() ignores compiledFileName
Type: Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: pjenvey Nosy List: fwierzbicki, markku_hanninen, pjenvey, zyasoft
Priority: normal Keywords:

Created on 2007-02-26.09:02:15 by markku_hanninen, last changed 2015-01-14.03:10:18 by zyasoft.

Messages
msg1507 (view) Author: Markku Hänninen (markku_hanninen) Date: 2007-02-26.09:02:15
org.python.core.imp method public static byte[] compileSource(String name, File file, String sourceFilename, String compiledFilename) ignores the compiledFilename parameter.

There also doesn't seem to be any public way of creating .class-files named other than *$py.class. 
msg3830 (view) Author: Philip Jenvey (pjenvey) Date: 2008-11-23.05:01:36
You can use py_compile with a dpath (destination path) argument to 
compile to a different name (or should be able to, this seems to 
currently be broken).

this version of compileSource may be pointless, have to delve into the 
other issue first
msg3898 (view) Author: Philip Jenvey (pjenvey) Date: 2008-12-10.00:29:13
py_compile dpath is currently broken due to #1605847
msg9384 (view) Author: Jim Baker (zyasoft) Date: 2015-01-14.03:10:17
py_compile with dpath now fully works and is tested, so that part is complete

To output other types of files than $py.class we should be using - and further extending - Clamp (https://github.com/jythontools/clamp)

I think it's too late to otherwise change the behavior in this API. We may do some cleanup in 3.x.
History
Date User Action Args
2015-01-14 03:10:18zyasoftsetstatus: open -> closed
resolution: remind -> out of date
messages: + msg9384
nosy: + zyasoft
2013-02-27 17:35:02fwierzbickisetresolution: remind
versions: + Jython 2.7
2009-08-12 12:16:18fwierzbickisetnosy: + fwierzbicki
2008-12-10 00:29:13pjenveysetmessages: + msg3898
2008-11-23 05:01:37pjenveysetassignee: pjenvey
messages: + msg3830
nosy: + pjenvey
2007-02-26 09:02:15markku_hanninencreate