Skip to content

Commit

Permalink
Merge pull request #76 from belowlab/fix-packaging
Browse files Browse the repository at this point in the history
Fix setup.py packaging, making bigscape installable
  • Loading branch information
adraismawur authored Nov 9, 2023
2 parents 9e65373 + 6c86d6c commit 62999ec
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
8 changes: 8 additions & 0 deletions __main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys
from . import bigscape

def main():
bigscape.main()

if __name__ == "__main__":
main()
7 changes: 4 additions & 3 deletions bigscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -2072,8 +2072,7 @@ def CMD_parser():

return parser.parse_args()


if __name__=="__main__":
def main():
options = CMD_parser()

class bgc_data:
Expand Down Expand Up @@ -3344,4 +3343,6 @@ def __init__(self, accession_id, description, product, records, max_width, bgc_s
with open(os.path.join(log_folder, "runtimes.txt"), 'a') as timings_file:
timings_file.write(runtime_string + "\n")
print(runtime_string)


if __name__=="__main__":
main()
14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ def generate_package_data():
data_files.append('anchor_domains.txt')
data_files.append('domain_includelist.txt')
data_files.append('domains_color_file.tsv')
package_data={'BiG-SCAPE': data_files}
package_data={'bigscape': data_files}
return package_data

setup(
name='BiG-SCAPE',
version='1.1.4',
name='bigscape',
version='1.1.5',
py_modules=['functions','ArrowerSVG'],
packages=['BiG-SCAPE'],
package_dir={'BiG-SCAPE': '.'},
packages=['bigscape'],
package_dir={'bigscape': '.'},
package_data=generate_package_data(),
scripts=['bigscape.py'],
entry_points={
'console_scripts': ['bigscape=bigscape.__main__:main']
},
description='Biosynthetic Genes Similarity Clustering and Prospecting Engine.',
keywords=['secondary metabolites', 'natural products', 'genome mining'],
url='https://github.com/medema-group/BiG-SCAPE',
Expand Down

0 comments on commit 62999ec

Please sign in to comment.