mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/astroscrappy: version bump
Package-Manager: portage-2.3.0
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST astroscrappy-1.0.3.tar.gz 422209 SHA256 843af0ec1fb7439a886f05690a52d96342c3bd505dfdef42e922a66b67a89776 SHA512 2e96e8e62f81c770802a3c7699ca4455c640bb000aa4bffc22149745eed4e7e33cc4b297649020a601ff7fb242c0545cf9391c19ee2687adab26ac494d37dbb2 WHIRLPOOL 8ee318233639617608a4c4aea0a75227317f3ca695430c49882a1396178eb3655bd80169291de2631c752c81d41016dcda85653eb1caa372cfd7c0d49080fd67
|
||||
DIST astroscrappy-1.0.5.tar.gz 421910 SHA256 29f6ab8809fb404c369f0a63c74ec72a11fbe872650dd08906caf6ab801c2920 SHA512 bad648140abe3032aa76f43b4c61a15bc49b825bb8333d0e2dc6ba244542e5d6b283824336de82c73aefdfd62b952c9089c3237c913faf17874af13725345064 WHIRLPOOL d3e63f2e4fd352b85095149efa06a3bee11daaab723fbd041a6375772ca2d23b72759a0698d512198cd38086e2a20a5984b9a04346ab2814f455c45f831676fb
|
||||
|
||||
60
dev-python/astroscrappy/astroscrappy-1.0.5.ebuild
Normal file
60
dev-python/astroscrappy/astroscrappy-1.0.5.ebuild
Normal file
@@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Optimized cosmic ray annihilation astropy python module"
|
||||
HOMEPAGE="https://github.com/astropy/astroscrappy"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE="doc openmp test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/astropy[${PYTHON_USEDEP}]
|
||||
dev-python/astropy-helpers[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
sci-libs/scipy[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
DOCS=( CHANGES.rst )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.0.5-respect-user-flag.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
# use astropy-helpers from system
|
||||
sed -i -e '/auto_use/s/True/False/' setup.cfg || die
|
||||
# if the user explicitely does not want openmp, do not forcefully use it
|
||||
if ! use openmp; then
|
||||
sed -e 's/if has_openmp/if False/' \
|
||||
-i astroscrappy/utils/setup_package.py || die
|
||||
fi
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && esetup.py build_sphinx
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
From f3acf99e65f58e2ee2f409d33f44a3abb1ba90c4 Mon Sep 17 00:00:00 2001
|
||||
From: Sébastien Fabbro <bicatali@gentoo.org>
|
||||
Date: Wed, 31 Aug 2016 22:19:12 +0000
|
||||
Subject: [PATCH] respect user compiling flags Depending on compilers, -O3
|
||||
-funroll-loops is not the fastest.
|
||||
|
||||
---
|
||||
astroscrappy/utils/setup_package.py | 8 ++------
|
||||
1 file changed, 2 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/astroscrappy/utils/setup_package.py b/astroscrappy/utils/setup_package.py
|
||||
index 3e1fba2..c271613 100644
|
||||
--- a/astroscrappy/utils/setup_package.py
|
||||
+++ b/astroscrappy/utils/setup_package.py
|
||||
@@ -73,16 +73,12 @@ def get_extensions():
|
||||
sources=med_sources,
|
||||
include_dirs=include_dirs,
|
||||
libraries=libraries,
|
||||
- language="c",
|
||||
- extra_compile_args=['-g', '-O3', '-funroll-loops',
|
||||
- '-ffast-math'])
|
||||
+ language="c")
|
||||
ext_im = Extension(name=str("astroscrappy.utils.image_utils"),
|
||||
sources=im_sources,
|
||||
include_dirs=include_dirs,
|
||||
libraries=libraries,
|
||||
- language="c",
|
||||
- extra_compile_args=['-g', '-O3', '-funroll-loops',
|
||||
- '-ffast-math'])
|
||||
+ language="c")
|
||||
|
||||
has_openmp, outputs = check_openmp()
|
||||
if has_openmp:
|
||||
--
|
||||
2.9.3
|
||||
|
||||
Reference in New Issue
Block a user