Skip to content

Commit a5aefad

Browse files
martin-gmencian
andauthored
quast: add linux-aarch64 build (#52546)
* quast: add linux-aarch64 build Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * Update meta.yaml * Update build.sh * Update meta.yaml * Try with Python 3.12+ * Use Python 3.12+ only for aarch64 * Python 3.12+ for all. linux-64 tests failed --------- Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> Co-authored-by: Joshua Zhuang <71105179+mencian@users.noreply.github.com>
1 parent 5d881e4 commit a5aefad

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

recipes/quast/build.sh

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
export C_INCLUDE_PATH=$PREFIX/include
44
export INCLUDE_PATH="${PREFIX}/include"
55
export LIBRARY_PATH="${PREFIX}/lib"
6-
export LD_LIBRARY_PATH="${PREFIX}/lib"
6+
export CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
7+
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
78

89
BINARY_HOME=$PREFIX/bin
910
QUAST_HOME=$PREFIX/opt/quast-$PKG_VERSION
@@ -14,25 +15,20 @@ mkdir -p $QUAST_HOME
1415
rm -rf $SRC_DIR/quast_libs/site_packages/joblib*
1516
rm -rf $SRC_DIR/quast_libs/site_packages/simplejson
1617

17-
sed -i'.bak' 's/CC=/#CC=/' $SRC_DIR/quast_libs/bwa/Makefile
18-
sed -i'.bak' 's/INCLUDES=/#INCLUDES=/' $SRC_DIR/quast_libs/bwa/Makefile
19-
sed -i'.bak' 's/CFLAGS=/CFLAGS+= -fcommon/' $SRC_DIR/quast_libs/bwa/Makefile
18+
sed -i.bak 's/CC=/#CC=/' $SRC_DIR/quast_libs/bwa/Makefile
19+
sed -i.bak 's/INCLUDES=/#INCLUDES=/' $SRC_DIR/quast_libs/bwa/Makefile
20+
sed -i.bak 's/CFLAGS=/CFLAGS+= -fcommon/' $SRC_DIR/quast_libs/bwa/Makefile
2021

21-
#pushd $SRC_DIR/quast_libs/bwa/
22-
#make
23-
#mv bwa ${PREFIX}/bin
24-
#popd
25-
26-
sed -i'.bak' 's/export CXX\s/#export CXX/' $SRC_DIR/quast_libs/bedtools/Makefile
27-
sed -i'.bak' 's/CXXFLAGS =/CXXFLAGS +=/' $SRC_DIR/quast_libs/bedtools/Makefile
22+
sed -i.bak 's/export CXX\s/#export CXX/' $SRC_DIR/quast_libs/bedtools/Makefile
23+
sed -i.bak 's/CXXFLAGS =/CXXFLAGS +=/' $SRC_DIR/quast_libs/bedtools/Makefile
2824

2925
# Fails on OSX
3026
#pushd $SRC_DIR/quast_libs/bedtools/
3127
#make
3228
#cp ./bin/* ${PREFIX}/bin
3329
#popd
3430

35-
$PYTHON -m pip install . --ignore-installed --no-deps -vv
31+
$PYTHON -m pip install . --no-build-isolation --no-deps --no-cache-dir -vvv
3632

3733
tail -n50 $SRC_DIR/quast_libs/*/make.* || true
3834

@@ -41,14 +37,14 @@ cp -R $SRC_DIR/icarus.py $QUAST_HOME/
4137

4238
lib_path=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
4339

44-
ln -s $lib_path/quast_libs $QUAST_HOME/quast_libs
40+
ln -sf $lib_path/quast_libs $QUAST_HOME/quast_libs
4541

4642
#Linking to binfolder
4743
chmod +x $QUAST_HOME/quast.py
48-
ln -s "$QUAST_HOME/quast.py" "$BINARY_HOME/quast"
44+
ln -sf "$QUAST_HOME/quast.py" "$BINARY_HOME/quast"
4945

5046
chmod +x $QUAST_HOME/metaquast.py
51-
ln -s "$QUAST_HOME/metaquast.py" "$BINARY_HOME/metaquast"
47+
ln -sf "$QUAST_HOME/metaquast.py" "$BINARY_HOME/metaquast"
5248

53-
cp $RECIPE_DIR/quast-download-* $PREFIX/bin
49+
cp -rf $RECIPE_DIR/quast-download-* $PREFIX/bin
5450
chmod +x $PREFIX/bin/quast-download-*

recipes/quast/meta.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ package:
66
version: {{ version }}
77

88
build:
9-
number: 1
9+
number: 2
1010
run_exports:
11-
- {{ pin_subpackage("quast", max_pin="x.x") }}
11+
- {{ pin_subpackage("quast", max_pin="x") }}
1212

1313
source:
1414
url:
@@ -27,28 +27,29 @@ requirements:
2727
- make
2828
host:
2929
- perl
30-
- python
30+
- python >=3.12
3131
- pip
3232
- setuptools
33+
- cython
3334
- matplotlib-base
3435
- joblib
3536
- simplejson
3637
- blast
3738
- zlib
3839
- glimmerHMM
3940
- circos
40-
- minimap2 >=2.10
41+
- minimap2
4142
run:
4243
- perl
43-
- python
44+
- python >=3.12
4445
- matplotlib-base
45-
- openjdk >=8
46+
- openjdk >=11.0.1
4647
- joblib
4748
- simplejson
4849
- blast
4950
- glimmerHMM
5051
- circos
51-
- minimap2 >=2.10
52+
- minimap2
5253
- bedtools
5354
- bwa
5455

@@ -60,17 +61,22 @@ test:
6061
- metaquast --version
6162

6263
about:
63-
home: http://quast.sourceforge.net/
64+
home: "https://quast.sourceforge.net"
6465
license: Custom
6566
license_file: LICENSE.txt
66-
summary: Quality Assessment Tool for Genome Assemblies
67+
summary: "Quality Assessment Tool for Genome Assemblies."
68+
dev_url: "https://github.com/ablab/quast"
69+
doc_url: "https://quast.sourceforge.net/docs/manual.html"
6770

6871
extra:
72+
additional-platforms:
73+
- linux-aarch64
6974
container:
7075
# ascii fallback fails without locale
71-
extended-base: true
76+
extended-base: True
7277
notes: |
7378
- GeneMark gene prediction software is disabled due to licensing issues
7479
identifiers:
7580
- biotools:quast
81+
- usegalaxy-eu:quast
7682
- doi:10.1093/bioinformatics/btt086

0 commit comments

Comments
 (0)