-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fde9809
commit 838ff15
Showing
5 changed files
with
128 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
easyblock = 'PythonPackage' | ||
|
||
name = 'pyspoa' | ||
version = '0.2.1' | ||
|
||
local_cereal_version = '1.3.2' | ||
|
||
homepage = 'https://github.com/nanoporetech/pyspoa' | ||
description = "Python bindings to spoa." | ||
|
||
toolchain = {'name': 'GCC', 'version': '12.2.0'} | ||
|
||
sources = [SOURCE_TAR_GZ] | ||
patches = ['pyspoa-%(version)s_use-spoa-dep.patch'] | ||
checksums = [ | ||
{'pyspoa-0.2.1.tar.gz': 'dad5f244dc524a2fd49d4b4918ce58d31db351fca34696b1d5f391aa66de7645'}, | ||
{'pyspoa-0.2.1_use-spoa-dep.patch': 'dffd946e3b36e4872846fe983d287f992b5bf177798e11141bf0d645cfc0664d'}, | ||
] | ||
|
||
builddependencies = [('CMake', '3.24.3')] | ||
|
||
dependencies = [ | ||
('Python', '3.10.8'), | ||
('pybind11', '2.10.3'), | ||
('spoa', '4.0.7'), | ||
] | ||
|
||
download_dep_fail = True | ||
use_pip = True | ||
sanity_pip_check = True | ||
|
||
preinstallopts = "mkdir -p src/vendor/cereal && ln -s %(builddir)s/cereal-*/include src/vendor/cereal/include && " | ||
# strip out cmake requirements, since we provide that as proper dependency | ||
preinstallopts += "sed -i 's/.cmake==[0-9.]*.//g' setup.py && " | ||
|
||
options = {'modulename': 'spoa'} | ||
|
||
sanity_check_commands = ["cd %(builddir)s/*/tests && python test_pyspoa.py"] | ||
|
||
moduleclass = 'lib' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
easyblock = 'PythonPackage' | ||
|
||
name = 'pyspoa' | ||
version = '0.2.1' | ||
|
||
local_cereal_version = '1.3.2' | ||
|
||
homepage = 'https://github.com/nanoporetech/pyspoa' | ||
description = "Python bindings to spoa." | ||
|
||
toolchain = {'name': 'GCC', 'version': '12.2.0'} | ||
|
||
sources = [ | ||
{ | ||
'source_urls': ['https://github.com/nanoporetech/pyspoa/archive/'], | ||
'download_filename': 'v%(version)s.tar.gz', | ||
'filename': 'pyspoa-%(version)s.tar.gz', | ||
}, | ||
{ | ||
'source_urls': ['https://github.com/USCiLab/cereal/archive/'], | ||
'download_filename': 'v%s.tar.gz' % local_cereal_version, | ||
'filename': 'cereal-%s.tar.gz' % local_cereal_version, | ||
}, | ||
] | ||
patches = ['pyspoa-%(version)s_use-spoa-dep.patch'] | ||
|
||
checksums = [ | ||
{'pyspoa-%s.tar.gz' % version: 'dad5f244dc524a2fd49d4b4918ce58d31db351fca34696b1d5f391aa66de7645'}, | ||
{'cereal-%s.tar.gz' % local_cereal_version: '16a7ad9b31ba5880dac55d62b5d6f243c3ebc8d46a3514149e56b5e7ea81f85f'}, | ||
{'pyspoa-%s_use-spoa-dep.patch' % version: 'dffd946e3b36e4872846fe983d287f992b5bf177798e11141bf0d645cfc0664d'}, | ||
] | ||
|
||
builddependencies = [('CMake', '3.24.3')] | ||
|
||
dependencies = [ | ||
('Python', '3.10.8'), | ||
('pybind11', '2.10.3'), | ||
('spoa', '4.0.7'), | ||
] | ||
|
||
download_dep_fail = True | ||
use_pip = True | ||
sanity_pip_check = True | ||
|
||
preinstallopts = "mkdir -p src/vendor/cereal && ln -s %(builddir)s/cereal-*/include src/vendor/cereal/include && " | ||
# strip out cmake requirements, since we provide that as proper dependency | ||
preinstallopts += "sed -i 's/.cmake==[0-9.]*.//g' setup.py && " | ||
|
||
options = {'modulename': 'spoa'} | ||
|
||
sanity_check_commands = ["cd %(builddir)s/*/tests && python test_pyspoa.py"] | ||
|
||
moduleclass = 'lib' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use spoa dependency provided through EasyBuild | ||
|
||
author: Kenneth Hoste (HPC-UGent) | ||
updated by: Petr Král (Inuits) | ||
diff --git a/pyspoa-0.2.1/setup.py.orig b/pyspoa-0.2.1/setup.py | ||
--- a/pyspoa-0.2.1/setup.py.orig 2023-11-27 14:48:14.661356275 +0100 | ||
+++ b/pyspoa-0.2.1/setup.py 2023-11-27 14:52:53.880656275 +0100 | ||
@@ -119,14 +119,14 @@ | ||
'spoa', | ||
['pyspoa.cpp'], | ||
include_dirs=[ | ||
- 'src/include/spoa', | ||
+ os.path.join(os.getenv('EBROOTSPOA'), 'include/spoa'), | ||
'src/vendor/cereal/include', | ||
get_pybind_include(), | ||
get_pybind_include(user=True), | ||
], | ||
language='c++', | ||
extra_objects=[ | ||
- LIB_SPOA | ||
+ os.path.join(os.getenv('EBROOTSPOA'), 'lib64/libspoa.a'), | ||
], | ||
|
||
), |