Commit cff01d74 authored by bescoto's avatar bescoto

Used Python.h to handle large files instead of setup.py defines


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@264 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b7caba8a
......@@ -21,7 +21,7 @@ tarfile = "-".join(base.split("-")[:-1]) + ".tar.gz"
# These assume the rpm root directory $HOME/rpm. The
# nonstandard location allows for building by non-root user.
assert not os.system("cp %s $HOME/rpm/SOURCES" % (tarfile,))
assert not os.system("rpm -ba --sign -vv --target i386 " + specfile)
assert not os.system("rpmbuild -ba --sign -vv --target i386 " + specfile)
assert not os.system("cp $HOME/rpm/RPMS/i386/%s ." % i386rpm)
assert not os.system("cp $HOME/rpm/SRPMS/%s ." % source_rpm)
......
......@@ -16,10 +16,7 @@ setup(name="rdiff-backup",
author_email="bescoto@stanford.edu",
url="http://rdiff-backup.stanford.edu",
packages = ['rdiff_backup'],
ext_modules = [Extension("rdiff_backup.C", ["cmodule.c"],
define_macros=[("_LARGEFILE_SOURCE", 1),
("_FILE_OFFSET_BITS", 64),
("_LARGE_FILES", 1)]),
ext_modules = [Extension("rdiff_backup.C", ["cmodule.c"]),
Extension("rdiff_backup._librsync",
["_librsyncmodule.c"],
libraries=["rsync"])],
......
......@@ -13,10 +13,10 @@
* ----------------------------------------------------------------------- */
#include <Python.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <Python.h>
#include <errno.h>
/* choose the appropriate stat and fstat functions and return structs */
......
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