Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


#80 In setup.py libdirs was forgotten for _recode

Cosmetic bug
misc (15)
Samuel John

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.


  • Samuel John
    Samuel John

    • milestone: 101515 --> Cosmetic bug
    • priority: 5 --> 2
    • status: open --> open-works-for-me
  • Logged In: YES
    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