[PATCH 4 of 7] use UNIX convention (slashes) for paths in setup.py
Martin Geisler
mg at daimi.au.dk
Fri Aug 22 15:16:14 UTC 2008
# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1219415582 -7200
# Node ID a593dff3dd00538d6ee9bf7d97311be9aef0e1b2
# Parent 4117bd2b19ea61909606531a718289a9320d01b4
use UNIX convention (slashes) for paths in setup.py
It is described here that distutils will take care of translating the
slashes into the appropriate path separator:
http://docs.python.org/dist/setup-script.html
diff -r 4117bd2b19ea -r a593dff3dd00 setup.py
--- a/setup.py Fri Aug 22 16:33:02 2008 +0200
+++ b/setup.py Fri Aug 22 16:33:02 2008 +0200
@@ -125,8 +125,8 @@
scripts=scripts,
packages=packages,
ext_modules=ext_modules,
- data_files=[(os.path.join('mercurial', root),
- [os.path.join(root, file_) for file_ in files])
+ data_files=[('mercurial/%s' % root,
+ ["%s/%s" % (root, file_) for file_ in files])
for root, dirs, files in os.walk('templates')],
cmdclass=cmdclass,
options=dict(py2exe=dict(packages=['hgext', 'email']),
More information about the Mercurial-devel
mailing list