Commit 6451b36a authored by ben's avatar ben

Reversed previous large file changes - answer was just to include

Python.h first.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@208 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 8ab7b37b
...@@ -16,10 +16,7 @@ setup(name="rdiff-backup", ...@@ -16,10 +16,7 @@ setup(name="rdiff-backup",
author_email="bescoto@stanford.edu", author_email="bescoto@stanford.edu",
url="http://rdiff-backup.stanford.edu", url="http://rdiff-backup.stanford.edu",
packages = ['rdiff_backup'], packages = ['rdiff_backup'],
ext_modules = [Extension("rdiff_backup.C", ["cmodule.c"], ext_modules = [Extension("rdiff_backup.C", ["cmodule.c"]),
define_macros=[("_LARGEFILE_SOURCE", 1),
("_FILE_OFFSET_BITS", 64),
("_LARGE_FILES", 1)]),
Extension("rdiff_backup._librsync", Extension("rdiff_backup._librsync",
["_librsyncmodule.c"], ["_librsyncmodule.c"],
libraries=["rsync"])], libraries=["rsync"])],
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
* ----------------------------------------------------------------------- */ * ----------------------------------------------------------------------- */
#include <Python.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <Python.h>
#include <errno.h> #include <errno.h>
/* choose the appropriate stat and fstat functions and return structs */ /* choose the appropriate stat and fstat functions and return structs */
......
...@@ -9,12 +9,8 @@ sys.argv.append("build") ...@@ -9,12 +9,8 @@ sys.argv.append("build")
setup(name="CModule", setup(name="CModule",
version="0.9.0", version="0.9.0",
description="rdiff-backup's C component", description="rdiff-backup's C component",
ext_modules=[Extension("C", ["cmodule.c"], ext_modules=[Extension("C", ["cmodule.c"]),
define_macros=[("_LARGEFILE_SOURCE", 1), Extension("_librsync", ["_librsyncmodule.c"],
("_FILE_OFFSET_BITS", 64),
("_LARGE_FILES", 1)]),
Extension("_librsync",
["_librsyncmodule.c"],
libraries=["rsync"])]) libraries=["rsync"])])
assert not os.system("mv build/lib.linux-i686-2.2/C.so .") assert not os.system("mv build/lib.linux-i686-2.2/C.so .")
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
* ----------------------------------------------------------------------- */ * ----------------------------------------------------------------------- */
#include <Python.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <Python.h>
#include <errno.h> #include <errno.h>
/* choose the appropriate stat and fstat functions and return structs */ /* choose the appropriate stat and fstat functions and return structs */
......
...@@ -9,12 +9,8 @@ sys.argv.append("build") ...@@ -9,12 +9,8 @@ sys.argv.append("build")
setup(name="CModule", setup(name="CModule",
version="0.9.0", version="0.9.0",
description="rdiff-backup's C component", description="rdiff-backup's C component",
ext_modules=[Extension("C", ["cmodule.c"], ext_modules=[Extension("C", ["cmodule.c"]),
define_macros=[("_LARGEFILE_SOURCE", 1), Extension("_librsync", ["_librsyncmodule.c"],
("_FILE_OFFSET_BITS", 64),
("_LARGE_FILES", 1)]),
Extension("_librsync",
["_librsyncmodule.c"],
libraries=["rsync"])]) libraries=["rsync"])])
assert not os.system("mv build/lib.linux-i686-2.2/C.so .") assert not os.system("mv build/lib.linux-i686-2.2/C.so .")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment