Revision: 4200
Author: jussi.ao.malinen
Date: Thu Sep 30 01:09:01 2010
Log: build jar file with Jythons py-files
http://code.google.com/p/robotframework/source/detail?r=4200
Modified:
/trunk/package.py
=======================================
--- /trunk/package.py Wed Sep 29 07:24:51 2010
+++ /trunk/package.py Thu Sep 30 01:09:01 2010
@@ -216,7 +216,8 @@
def _compile_all_py_files(tmpdir):
subprocess.call(['java', '-jar', JYTHON_JAR, '-m', 'compileall',
tmpdir])
- for root, _, files in os.walk(tmpdir):
+ # Jython will not work without its py-files, but robot will
+ for root, _, files in os.walk(join(tmpdir,'Lib','robot')):
for f in files:
if f.endswith('.py'):
os.remove(join(root, f))
@@ -242,8 +243,6 @@
jar = zipfile.ZipFile(jarpath, 'w', compression=zipfile.ZIP_DEFLATED)
for root, _, files in os.walk(sourcedir):
for name in files:
- if name.endswith('.py'):
- continue
source = join(root, name)
target= source.replace(sourcedir+os.sep, '')
print 'Adding %s' % target