Skip to content

Commit

Permalink
Added .sql and simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 22, 2017
1 parent c3a0201 commit 5794c65
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

# Build a list of all project modules, as well as supplementary files
main_package = "spinn_front_end_common"
data_extensions = {".aplx", ".boot", ".json", ".xml", ".xsd"}
config_extensions = {".cfg", ".template"}
extensions = {".aplx", ".boot", ".cfg", ".json", ".sql", ".template", ".xml",
".xsd"}
main_package_dir = os.path.join(os.path.dirname(__file__), main_package)
start = len(main_package_dir)
packages = []
Expand All @@ -19,19 +19,12 @@
package = "{}{}".format(
main_package, dirname[start:].replace(os.sep, '.'))
packages.append(package)
ext_set = set()
for filename in filenames:
_, ext = os.path.splitext(filename)
if ext in data_extensions:
ext_set.add(ext)
if ext in config_extensions:
if ext in extensions:
package = "{}{}".format(
main_package, dirname[start:].replace(os.sep, '.'))
package_data[package].append(filename)
for ext in ext_set:
package = "{}{}".format(
main_package, dirname[start:].replace(os.sep, '.'))
package_data[package].append("*{}".format(ext))

setup(
name="SpiNNFrontEndCommon",
Expand Down

0 comments on commit 5794c65

Please sign in to comment.