@@ -520,20 +520,23 @@ following way::
520520 setup(...,
521521 data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']),
522522 ('config', ['cfg/data.cfg']),
523- ('/etc/init.d', ['init-script'])]
524523 )
525524
526- Note that you can specify the directory names where the data files will be
527- installed, but you cannot rename the data files themselves.
528-
529525Each (*directory *, *files *) pair in the sequence specifies the installation
530- directory and the files to install there. If *directory * is a relative path, it
531- is interpreted relative to the installation prefix (Python's ``sys.prefix `` for
532- pure-Python packages, ``sys.exec_prefix `` for packages that contain extension
533- modules). Each file name in *files * is interpreted relative to the
534- :file: `setup.py ` script at the top of the package source distribution. No
535- directory information from *files * is used to determine the final location of
536- the installed file; only the name of the file is used.
526+ directory and the files to install there.
527+
528+ Each file name in *files * is interpreted relative to the :file: `setup.py `
529+ script at the top of the package source distribution. Note that you can
530+ specify the directory where the data files will be installed, but you cannot
531+ rename the data files themselves.
532+
533+ The *directory * should be a relative path. It is interpreted relative to the
534+ installation prefix (Python's ``sys.prefix `` for system installations;
535+ ``site.USER_BASE `` for user installations). Distutils allows *directory * to be
536+ an absolute installation path, but this is discouraged since it is
537+ incompatible with the wheel packaging format. No directory information from
538+ *files * is used to determine the final location of the installed file; only
539+ the name of the file is used.
537540
538541You can specify the ``data_files `` options as a simple sequence of files
539542without specifying a target directory, but this is not recommended, and the
0 commit comments