BPL
BPL

Reputation: 9863

Absolute path error when building wheel

OVERVIEW

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.

Here's my setup.py:

from setuptools import setup, find_packages

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

When i try to do >python setup.py bdist_wheel I'm getting this error:

raise ValueError, "path '%s' cannot be absolute" % pathname

It seems the way I'm using data_files is not supported.

QUESTION

What's the right way to deploy config files using wheels & setup.py?

Upvotes: 2

Views: 831

Answers (1)

Pete
Pete

Reputation: 2693

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

See also: https://stackoverflow.com/a/34204582/116042

Upvotes: 1

Related Questions