Skip to content

Commit

Permalink
removing BioExt depedency from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenweaver committed Oct 24, 2023
1 parent 296383b commit 3f239f6
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 10 deletions.
29 changes: 24 additions & 5 deletions BioExt/tn93/_tn93.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions BioExt/tn93/_tn93.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Generated by Cython 3.0.3 -->
<!-- Generated by Cython 3.0.4 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Expand Down Expand Up @@ -289,7 +289,7 @@
</style>
</head>
<body class="cython">
<p><span style="border-bottom: solid 1px grey;">Generated by Cython 3.0.3</span></p>
<p><span style="border-bottom: solid 1px grey;">Generated by Cython 3.0.4</span></p>
<p>
<span style="background-color: #FFFF00">Yellow lines</span> hint at Python interaction.<br />
Click on a line that starts with a "<code>+</code>" to see the C code that Cython generated for it.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[build-system]
requires = ["setuptools>=42", "wheel", "Cython"]
requires = ["setuptools>=42", "wheel", "Cython", "numpy"]

build-backend = "setuptools.build_meta"
32 changes: 30 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

from Cython.Build import cythonize
from setuptools import Extension, setup
from BioExt.references._factory import _installrefdirs

from glob import glob
from os.path import join, abspath, split, basename


np_inc = [os.path.join(os.path.dirname(numpy.__file__), 'core', 'include')]

Expand Down Expand Up @@ -50,10 +53,35 @@
)
] + tn93_extension

_refdir = join(
split(
split(
abspath(__file__)
)[0] # this_directory/
)[0], # this_directory/../
'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.3',
version='0.21.4',
description='Misc utilities and definitions not included or hidden in BioPython',
author='N Lance Hepler',
author_email='nlhepler@gmail.com',
Expand Down

0 comments on commit 3f239f6

Please sign in to comment.