Browse Source

Fix deployment flow

pull/279/head
sgelis 2 years ago
parent
commit
493b212892
  1. 11
      setup.py

11
setup.py

@ -4,18 +4,16 @@
$ python setup.py install
"""
from patacrep import __version__
from patacrep import __version__, __DATADIR__
from setuptools import setup, find_packages
import os
import sys
setup_kwargs = {
'setup_requires': [],
}
if sys.platform[0:3] == 'win':
from patacrep import __DATADIR__
def recursive_find(root_directory):
"""Recursively find files from a root_directory.
@ -35,13 +33,12 @@ if sys.platform[0:3] == 'win':
yield os.path.join(root, filename)
os.chdir(olddir)
# List the data files
data_files = recursive_find(__DATADIR__)
data_files = ["data/" + d for d in data_files]
setup_kwargs['package_data'] = {'patacrep': data_files}
else:
setup_kwargs['setup_requires'].append('hgtools')
setup_kwargs['include_package_data'] = True
setup(
name='patacrep',

Loading…
Cancel
Save