Skip to content

Commit

Permalink
Improved setup.py so that it finds PREFIX dir automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoaki Okazaki committed Jan 24, 2016
1 parent acbae44 commit 84beb47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ AC_SUBST(libdir)
dnl ------------------------------------------------------------------
dnl Output the configure results.
dnl ------------------------------------------------------------------
AC_CONFIG_FILES(Makefile genbinary.sh include/Makefile lib/cqdb/Makefile lib/crf/Makefile frontend/Makefile swig/Makefile swig/perl/Makefile.PL)
AC_CONFIG_FILES(Makefile genbinary.sh include/Makefile lib/cqdb/Makefile lib/crf/Makefile frontend/Makefile swig/Makefile swig/python/setup.py swig/perl/Makefile.PL)
AC_OUTPUT
2 changes: 1 addition & 1 deletion swig/python/setup.py → swig/python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import os.path

def get_rootdir():
return '/usr/local/'
return '@prefix@'
def get_includedir():
return os.path.join(get_rootdir(), 'include')
def get_librarydir():
Expand Down

0 comments on commit 84beb47

Please sign in to comment.