#1044 closed task (fixed)
python-lzo 2.09 for win32
Reported by: | Antoine Martin | Owned by: | Smo |
---|---|---|---|
Priority: | minor | Milestone: | 0.16 |
Component: | platforms | Version: | trunk |
Keywords: | Cc: |
Description (last modified by )
I've already updated my build system, please update yours and fix / verify the build instructions:
- build lzo-2.09 using mingw
- copy
lzo-2.09\src\.libs\liblzo2.a
to the root directorylzo-2.09
so it can be found more easily - unpack python-lzo and patch it (I placed the source in
E:\lzo
):--- setup.py +++ setup.py @@ -20,13 +20,14 @@ # Windows users have to configure the LZO_DIR path parameter to match # their LZO source installation. The path set here is just an example # and thus unlikely to match your installation. - LZO_DIR = r"c:\src\lzo-1.08" + LZO_DIR = r"E:\lzo-2.09" if not os.path.exists(LZO_DIR): raise Exception("please set LZO_DIR to where the lzo source lives") include_dirs.append(os.path.join(LZO_DIR, "include")) - extra_objects.append(os.path.join(LZO_DIR, "lzo.lib")) + include_dirs.append(os.path.join(LZO_DIR, "include", "lzo")) + extra_objects.append(os.path.join(LZO_DIR, "liblzo2.a")) else: libraries = ["lzo2"] include_dirs.append("/usr/include/lzo") ##library_dirs.append("/usr/local/lib")
- run
C:\Python27\Python.exe setup.py install
Attachments (1)
Change History (13)
comment:1 Changed 5 years ago by
Owner: | changed from Smo to Antoine Martin |
---|
comment:2 Changed 5 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from Antoine Martin to Smo |
First, you should be doing this with python-lzo-1.09 not 1.08.
DLL load issued can usually be investigated with depends.exe
comment:3 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Used python-lzo-1.09 and now it imports no problem.
Instructions work.
comment:4 Changed 5 years ago by
@smo: python-lzo 1.10 is out: https://pypi.python.org/pypi/python-lzo/
(straightforward rebuild, r11693 + r11700 fixup adds it to the osx moduleset)
comment:5 Changed 5 years ago by
Note: the 1.10 package shows up as 1.09... see https://github.com/jd-boyd/python-lzo/issues/13
comment:6 Changed 5 years ago by
The bug has been fixed: https://github.com/jd-boyd/python-lzo/issues/13 and a new 1.11 version released: https://pypi.python.org/pypi/python-lzo/1.11
comment:7 Changed 5 years ago by
Applied to the jhbuild moduleset in r11754, submitted upstream: https://github.com/jd-boyd/python-lzo/issues/14.
win32 still needs doing by hand..
comment:11 Changed 11 months ago by
The pull request has been merged, now we can just install it via pacman: r26342.
comment:12 Changed 3 months ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1044
These instructions worked fine for me for building and installing but i'm having this issue importing this module in python
Any ideas?