#80 In setup.py libdirs was forgotten for _recode

Cosmetic bug
open-works-for-me
misc (15)
2
2007-08-25
2007-08-09
Samuel John
No

Concerning python-bibtex 1.2.4 the setup script need the following addition in order to make it possible to refer to a user-installed location of recode:

Extension("_recode", ["recodemodule.c"],
include_dirs = includes,
library_dirs = libdirs, <---- add this
libraries = ['recode'])
])

Background: One some systems the where you don't have root priviledges, you have to install the (pateched) GNU recode 3.6 into your home or somewhere else where you can write to.
Telling the setup.py the location by altering the lines:

includes = ['/home/JUSER/include']
libs = []
libdirs = ['/home/JUSER/lib/']

is not enough, because in line 210 of setup.py you must add
library_dirs = libdirs,
so that gcc / ld can find the lib.

I am not sure but I think this may be a littel bug.

Discussion

  • Samuel John
    Samuel John
    2007-08-09

    • milestone: 101515 --> Cosmetic bug
    • priority: 5 --> 2
    • status: open --> open-works-for-me
     
  • Logged In: YES
    user_id=27260
    Originator: NO

    Have you tried

    python setup.py build_ext -I /path/to/recode/include -L /path/to/recode/lib

    ...as is mentioned in the README?

     
    • assigned_to: nobody --> gobry