added: check for readthedocs
This commit is contained in:
parent
0d47e96d73
commit
9a93932ad8
8
setup.py
8
setup.py
@ -25,6 +25,12 @@ dtm = os.path.join(os.path.abspath(os.sep), 'usr', 'share', pname)
|
||||
rqfiles = [(os.path.join(dtm, root), [os.path.join(root, f) for f in files])
|
||||
for root, dirs, files in os.walk('rq')]
|
||||
rqfiles.append((os.path.join(dtm, 'configs'), ['config.yaml', 'rq.yaml']))
|
||||
package_data = True
|
||||
|
||||
if os.environ.get("READTHEDOCS", True):
|
||||
rqfiles = None
|
||||
package_data = False
|
||||
|
||||
|
||||
setup(name=pname,
|
||||
version=version,
|
||||
@ -36,6 +42,6 @@ setup(name=pname,
|
||||
packages=[pname],
|
||||
install_requires=['pyyaml'],
|
||||
data_files=rqfiles,
|
||||
include_package_data=True,
|
||||
include_package_data=package_data,
|
||||
entry_points={'console_scripts': ['%s=%s.cli:main' % (pname, pname)]},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user