Skip to content

Commit

Permalink
explicitly state which reference directories to include
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenweaver committed Apr 24, 2024
1 parent 674d151 commit 813bcef
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,35 +53,9 @@
)
] + tn93_extension

_refdir = join(
split(
split(
abspath(__file__)
)[0] # this_directory/
)[0], # this_directory/../
'BioExt',
'BioExt',
'data',
'references'
)

_installrefdirs = []

# Simplified logic to generate _installrefdirs
for seqdir in glob(join(_refdir, '*')):
globber = '*.*' # Assuming you want all file types, adjust as needed
_installrefdirs.append(
join(
'data',
'references',
basename(seqdir),
globber
)
)

setup(
name='bioext',
version='0.21.5',
version='0.21.7',
description='Misc utilities and definitions not included or hidden in BioPython',
author='N Lance Hepler',
author_email='nlhepler@gmail.com',
Expand Down Expand Up @@ -142,8 +116,11 @@
package_data={
'BioExt': [
'data/fonts/ttf/*.ttf',
'data/scorematrices/*.txt'
] + _installrefdirs
'data/scorematrices/*.txt',
'data/references/cov2/*.*',
'data/references/hxb2/*.*',
'data/references/nl4-3/*.*'
]
},
scripts=[
'scripts/bam2fna',
Expand Down

0 comments on commit 813bcef

Please sign in to comment.