Skip to content

Commit

Permalink
Support wheels distribution
Browse files Browse the repository at this point in the history
Seems like the comment about data files not being included in wheels
when using full paths is no longer true.

The check I've done is making sure the completion output still works
when installing the wheel files, which seems to work.

In addition, it produces warnings that the legacy installation method
will get deprecated soon:
```
DEPRECATION: strato-skipper was installed using the legacy 'setup.py
install' method, because a wheel could not be built for it. pip 23.1
will enforce this behaviour change.
```
  • Loading branch information
osherdp authored and eranco74 committed Mar 14, 2023
1 parent 2607905 commit d878414
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import os
import sys
from setuptools import setup

# Workaround: bdist_wheel doesn't support absolute paths in data_files
# (see: https://bitbucket.org/pypa/wheel/issues/92).
if os.getuid() == 0 and 'bdist_wheel' in sys.argv:
raise RuntimeError("This setup.py does not support wheels")

setup(
setup_requires=[
'pbr >= 1.9',
Expand Down

0 comments on commit d878414

Please sign in to comment.