-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
54 lines (48 loc) · 1.79 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020-2024 The WfCommons Team.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
import sys
import subprocess
from setuptools import setup, find_packages
from setuptools.command.build_ext import build_ext
class Build(build_ext):
"""Customized setuptools build command - builds protos on build."""
def run(self):
protoc_command = ["make"]
if subprocess.call(protoc_command) != 0:
print("Error: 'make' is not istnalled. Please install 'make' and try again.")
sys.exit(-1)
super().run()
setup(
packages=find_packages(),
include_package_data=True,
has_ext_modules=lambda: True,
cmdclass={
'build_ext': Build,
},
data_files=[
('bin', ['bin/cpu-benchmark', 'bin/wfbench'])
],
entry_points={
'console_scripts': [
'wfchef=wfcommons.wfchef.chef:main'
],
'workflow_recipes': [
'epigenomics_recipe = wfcommons.wfchef.recipes:EpigenomicsRecipe',
'montage_recipe = wfcommons.wfchef.recipes:MontageRecipe',
'cycles_recipe = wfcommons.wfchef.recipes:CyclesRecipe',
'seismology_recipe = wfcommons.wfchef.recipes:SeismologyRecipe',
'soykb_recipe = wfcommons.wfchef.recipes:SoykbRecipe',
'srasearch_recipe = wfcommons.wfchef.recipes:SrasearchRecipe',
'genome_recipe = wfcommons.wfchef.recipes:GenomeRecipe',
'blast_recipe = wfcommons.wfchef.recipes:BlastRecipe',
'bwa_recipe = wfcommons.wfchef.recipes:BwaRecipe',
]
},
)