Skip to content

Commit 1cbc68f

Browse files
author
Francesco Beghini
committed
Create paackage folder structure
1 parent 8cc59ac commit 1cbc68f

9 files changed

Lines changed: 10 additions & 7 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from argparse import ArgumentParser
1818
from collections import defaultdict
1919
from shutil import copyfileobj
20-
from utils import end_program, show_interruption_message, show_error_message, time_message, find
20+
from .utils import end_program, show_interruption_message, show_error_message, time_message, find
2121
import bz2, fnmatch, multiprocessing, operator, os, subprocess, sys, tempfile, time
2222
from distutils.version import LooseVersion
2323

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from argparse import ArgumentParser
2020
from collections import defaultdict
2121
from random import randint
22-
from utils import end_program, show_interruption_message, show_error_message, time_message, find
22+
from .utils import end_program, show_interruption_message, show_error_message, time_message, find
2323
import fnmatch, operator, os, subprocess, sys, time
2424
import bz2
2525

File renamed without changes.
File renamed without changes.

setup.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
author='Matthias Scholz',
1111
author_email='matthias.scholz.de@gmail.com',
1212
url='http://github.com/SegataLab/panphlan/',
13-
py_modules=['panphlan_map', 'panphlan_profile', 'panphlan_new_pangenome_generation', 'panphlan_pangenome_generation', 'utils'],
14-
entry_points = { "console_scripts" : [ "panphlan_map = panphlan_map:main",
15-
"panphlan_profile = panphlan_profile:main",
16-
"panphlan_new_pangenome_generation = panphlan_new_pangenome_generation:main",
17-
"panphlan_pangenome_generation = panphlan_pangenome_generation:main"
13+
packages=setuptools.find_namespace_packages(),
14+
package_data = { 'panphlan' : [
15+
'panphlan/tools/*'
16+
]},
17+
entry_points = { "console_scripts" : [ "panphlan_map.py = panphlan.panphlan_map:main",
18+
"panphlan_profile.py = panphlan.panphlan_profile:main",
19+
"panphlan_new_pangenome_generation.py = panphlan.panphlan_new_pangenome_generation:main",
20+
"panphlan_pangenome_generation.py = panphlan.panphlan_pangenome_generation:main"
1821
] },
1922
long_description_content_type='text/markdown',
2023
long_description=open('README.md').read(),

0 commit comments

Comments
 (0)