summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeiyi Wang <fwang2@gmail.com>2018-01-02 19:08:58 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-02 20:08:58 -0600
commit8221265c3ceeb83386e32da254e6e03807be27d1 (patch)
tree5d626629b748eb8e4b82fd4f98c9ee7e75cd891b
parent59cd2db8f37863eed4ab4213041dabc41c944a0d (diff)
downloadspack-8221265c3ceeb83386e32da254e6e03807be27d1.tar.gz
spack-8221265c3ceeb83386e32da254e6e03807be27d1.tar.bz2
spack-8221265c3ceeb83386e32da254e6e03807be27d1.tar.xz
spack-8221265c3ceeb83386e32da254e6e03807be27d1.zip
py-scandir: a better directory iterator, backport to 2.7 (#6739)
-rw-r--r--var/spack/repos/builtin/packages/py-scandir/package.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-scandir/package.py b/var/spack/repos/builtin/packages/py-scandir/package.py
new file mode 100644
index 0000000000..81f9d6875f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-scandir/package.py
@@ -0,0 +1,37 @@
+##############################################################################
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class PyScandir(PythonPackage):
+ """scandir, a better directory iterator and faster os.walk()."""
+
+ homepage = "https://github.com/benhoyt/scandir"
+ url = "https://pypi.io/packages/source/s/scandir/scandir-1.6.tar.gz"
+
+ version('1.6', '0180ddb97c96cbb2d4f25d2ae11c64ac')
+
+ depends_on('python@2.7:')
+ depends_on('py-setuptools', type=('build'))