How to install data_files to absolute path?
<p>I use pip with setuptools to install a package. 
I want pip to copy some resource files to, say, <code>/etc/my_package</code>. </p>

<p>My <code>setup.py</code> looks like this: </p>

<pre><code>setup(
    ...
    data_files=[('/etc/my_package', ['config.yml'])]
)
</code></pre>

<p>When running <code>pip install</code>, the file ends up in</p>

<pre><code>~/.local/lib/python3.5/site-packages/etc/my_package/config.yml
</code></pre>

<p>instead of <code>/etc/my_package</code>. </p>

<p>What am I doing wrong? </p>

<p>(pip version 9.0.1)</p>