diff --git a/dev-python/pandas/pandas-0.25.3.recipe b/dev-python/pandas/pandas-0.25.3.recipe deleted file mode 100644 index 67687d9ab..000000000 --- a/dev-python/pandas/pandas-0.25.3.recipe +++ /dev/null @@ -1,112 +0,0 @@ -SUMMARY="A powerful data analysis library for Python" -DESCRIPTION="Pandas is a Python package providing fast, flexible \ -and expressive data structures designed to make working with \ -\"relational\" or \"labeled\" data both easy and intuitive. \ -It aims to be the fundamental high-level building block for \ -doing practical, real world data analysis in Python." -HOMEPAGE="https://pandas.pydata.org/" -COPYRIGHT="2008-2012 AQR Capital Management, LLC - Lambda Foundry, Inc. - PyData Development Team" -LICENSE="BSD (3-clause)" -REVISION="1" -SOURCE_URI="https://files.pythonhosted.org/packages/source/p/pandas/pandas-$portVersion.tar.gz" -CHECKSUM_SHA256="52da74df8a9c9a103af0a72c9d5fdc8e0183a90884278db7f386b5692a2220a4" - -ARCHITECTURES="!x86_gcc2 ?x86 x86_64" -SECONDARY_ARCHITECTURES="!x86" - -PROVIDES=" - pandas$secondaryArchSuffix = $portVersion - " -REQUIRES=" - haiku$secondaryArchSuffix - " - -BUILD_REQUIRES=" - haiku${secondaryArchSuffix}_devel - " -BUILD_PREREQUIRES=" - cmd:gcc$secondaryArchSuffix - cmd:gfortran$secondaryArchSuffix - cmd:pkg_config$secondaryArchSuffix - " - -PYTHON_PACKAGES=() -PYTHON_VERSIONS=() -PYTHON_LIBSUFFIXES=() -# gcc2 does not support the flags passed by python3 -if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then - PYTHON_PACKAGES+=(python3) - PYTHON_VERSIONS+=(3.7) - PYTHON_LIBSUFFIXES+=(m) - BUILD_REQUIRES+=" - setuptools_python3 - cython_python3$secondaryArchSuffix - numpy${secondaryArchSuffix}_python3 - dateutil_python3 - pytz_python3 - " - BUILD_PREREQUIRES+=" - cmd:python3 - " -fi -if [ "$targetArchitecture" = x86_gcc2 -a -n "$secondaryArchSuffix" ]; then - PROVIDES_python3=" - pandas_python3 = $portVersion - " -fi -for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - pythonLibSuffix=${PYTHON_LIBSUFFIXES[$i]} - - eval "PROVIDES_$pythonPackage+=\" - ${portName}_$pythonPackage = $portVersion - \"" - eval "REQUIRES_$pythonPackage=\" - haiku$secondaryArchSuffix - cmd:python$pythonVersion - setuptools_$pythonPackage - cython_$pythonPackage$secondaryArchSuffix - numpy${secondaryArchSuffix}_$pythonPackage - dateutil_$pythonPackage - pytz_$pythonPackage - \"" -done - -BUILD() -{ - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - rm -rf "$sourceDir"-$pythonPackage - cp -a "$sourceDir" "$sourceDir"-$pythonPackage - cd "$sourceDir"-$pythonPackage - - python=python$pythonVersion - $python setup.py build_ext --inplace - $python setup.py build - done -} - -INSTALL() -{ - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} - - cd "$sourceDir"-$pythonPackage - - python=python$pythonVersion - installLocation=$prefix/lib/$python/vendor-packages/ - export PYTHONPATH=$installLocation - mkdir -p "$installLocation" - $python setup.py install \ - --root=/ --prefix="$prefix" - - packageEntries $pythonPackage \ - "$prefix"/lib/$python - done -} diff --git a/dev-python/pandas/pandas-1.3.2.recipe b/dev-python/pandas/pandas-1.3.2.recipe new file mode 100644 index 000000000..3527fa78e --- /dev/null +++ b/dev-python/pandas/pandas-1.3.2.recipe @@ -0,0 +1,82 @@ +SUMMARY="A powerful data analysis library for Python" +DESCRIPTION="Pandas is a Python package providing fast, flexible \ +and expressive data structures designed to make working with \ +\"relational\" or \"labeled\" data both easy and intuitive. \ +It aims to be the fundamental high-level building block for \ +doing practical, real world data analysis in Python." +HOMEPAGE="https://pandas.pydata.org/" +COPYRIGHT="2008-2012 AQR Capital Management, LLC + Lambda Foundry, Inc. + PyData Development Team" +LICENSE="BSD (3-clause)" +REVISION="1" +SOURCE_URI="https://files.pythonhosted.org/packages/source/p/pandas/pandas-$portVersion.tar.gz" +CHECKSUM_SHA256="cbcb84d63867af3411fa063af3de64902665bb5b3d40b25b2059e40603594e87" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="?x86" + +PROVIDES=" + $portName = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + numpy$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:gfortran$secondaryArchSuffix + cmd:pkg_config$secondaryArchSuffix + " + +PYTHON_PACKAGES=(python3 python38 python39) +PYTHON_VERSIONS=(3.7 3.8 3.9) +for i in "${!PYTHON_PACKAGES[@]}"; do +pythonPackage=${PYTHON_PACKAGES[i]} +pythonVersion=${PYTHON_VERSIONS[$i]} +eval "PROVIDES_${pythonPackage}=\"\ + ${portName}_$pythonPackage = $portVersion\n\ + \"; \ +REQUIRES_$pythonPackage=\"\ + haiku$secondaryArchSuffix\n\ + numpy${secondaryArchSuffix}_$pythonPackage\n\ + pandas$secondaryArchSuffix\n\ + dateutil_$pythonPackage\n\ + pytz_$pythonPackage\n\ + cmd:python$pythonVersion\ + \"" +BUILD_REQUIRES="$BUILD_REQUIRES + numpy${secondaryArchSuffix}_$pythonPackage + setuptools_$pythonPackage + dateutil_$pythonPackage + pytz_$pythonPackage + " +BUILD_PREREQUIRES="$BUILD_PREREQUIRES + cmd:cython$pythonVersion$secondaryArchSuffix + cmd:python$pythonVersion + " +done + + +INSTALL() +{ + for i in "${!PYTHON_PACKAGES[@]}"; do + pythonPackage=${PYTHON_PACKAGES[i]} + pythonVersion=${PYTHON_VERSIONS[$i]} + + python=python$pythonVersion + installLocation=$prefix/lib/$python/vendor-packages/ + export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation + rm -rf build + $python setup.py build install \ + --root=/ --prefix=$prefix + + packageEntries $pythonPackage \ + $prefix/lib/python* + done +}