Absolute path error when building wheel
<p><strong>OVERVIEW</strong></p>

<p>I'm trying to learn how to build wheels on my windows dev box so hopefully I'll have a nice way to deploy django websites on linux boxes. But right now I'm stuck with a little error.</p>

<p>Here's my setup.py:</p>

<pre><code>from setuptools import setup, find_packages

setup(name='pkg',
      version="1.0",
      packages=find_packages(),
      data_files=[('/etc/nginx/sites-available', ['foo.conf'])]
      )
</code></pre>

<p>When i try to do <code>&gt;python setup.py bdist_wheel</code> I'm getting this error:</p>

<pre><code>raise ValueError, "path '%s' cannot be absolute" % pathname
</code></pre>

<p>It seems the way I'm using data_files is not supported. </p>

<p><strong>QUESTION</strong></p>

<p>What's the right way to deploy config files using <a href="http://pythonwheels.com/" rel="nofollow">wheels</a> &amp; <a href="https://docs.python.org/2/distutils/setupscript.html" rel="nofollow">setup.py</a>?</p>

<p>Wheels should be used for bundling Python code. It's not for configuration management (where Nginx configurations would typically be handled).</p>

<p>See also: <a href="http://stackoverflow.com/a/34204582/116042">http://stackoverflow.com/a/34204582/116042</a></p>

python django python-wheel