#3 setup-script

closed
nobody
None
5
2005-01-25
2004-12-16
Anonymous
No

Hi,

the setup.py-script has a problem when the
"imlib2-config --..." command doesn't return anything
(which is the case on my debian-sid-system).

I think the library-check must be done by another way.

I modified the for-loop to this and it compiled cleanly:

for config in ("freetype-config", "imlib2-config"):
cflags = os.popen("%s --cflags" %
config).read().strip().split()
if cflags:
for cflag in cflags:
if cflag not in cargs:
cargs.append(cflag)

libs = os.popen("%s --libs" %
config).read().strip().split()
if libs:
for lib in libs:
if lib not in largs:
largs.append(lib)

Discussion

  • Logged In: NO

    damn... html is no good for python-code ;-)

     
  • Logged In: NO

    Same problem here with Gentoo Portage system.
    I commented out :

    # if config == "freetype-config":
    # xft.append(("HAVE_XFT",1))
    # largs.append("-lXft")

    and

    # else:
    # if config == "imlib2-config":
    # print "\nPyPanel requires the Imlib2 library -"
    # print
    #"http://www.enlightenment.org/pages/imlib2.html"
    # sys.exit()

    But it's returning this message :

    Traceback (most recent call last):
    File "/usr/bin/pypanel", line 710, in ?
    from ppmodule import ppinit, ppshade, ppicon, ppfont,
    ppfontsize, ppclear
    ImportError: /usr/lib/python2.3/site-packages/ppmodule.so:
    undefined symbol: imlib_render_pixmaps_for_whole_image

    Even if it compiled cleanly.

    And yes, I have all of the dependencies installed
    (which are :
    DEPEND="virtual/x11
    >=dev-lang/python-2.2.3-r1
    >=dev-python/python-xlib-0.12
    >=sys-apps/sed-4
    >=media-libs/imlib2.1.1" )

     
  • Jon Gelo
    Jon Gelo
    2005-01-25

    • status: open --> closed
     
  • Jon Gelo
    Jon Gelo
    2005-01-25

    Logged In: YES
    user_id=848968

    Fixed in v2.1