Tema: Re: [Python, LibreOffice]: reikia krypties
Autorius: Laimis
Data: 2014-04-09 21:49:37
ejs rašė:
> neįmanoma importuoti ant IronPython'o, nepatinka zip'o modulis. Su 3.4
> dirba be problemų.
> ipy.exe -V
IronPython 2.7 2.7.0.40 on .NET 4.0.30319.1022
> diff -u Lib/distutils/util.py Lib/distutils/util.py.new
--- Lib/distutils/util.py 2014-04-09 21:24:09.881577600 +0300
+++ Lib/distutils/util.py.new 2014-04-09 20:36:42.647456000 +0300
@@ -452,8 +452,8 @@
"""
# nothing is done if sys.dont_write_bytecode is True
if sys.dont_write_bytecode:
- raise DistutilsByteCompileError('byte-compiling is disabled.')
-
+ #raise DistutilsByteCompileError('byte-compiling is disabled.')
+ return
# First, if the caller didn't force us into direct or indirect mode,
# figure out which mode we should be in. We take a conservative
> wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
> ipy.exe ez_setup.py
> wget https://pypi.python.org/packages/source/o/odslib/odslib-1.0.2.tar.bz2
> tar -xf odslib-1.0.2.tar.bz2
> cd odslib-1.0.2
> ipy.exe setup.py install
> ipy.exe -c "from odslib import ODS; ods=ODS(); ods.save('test.ods')"
> ls -l test.ods
-rwx------+ 1 Laimis None 3796 Apr 9 21:48 test.ods