Skip to content

Commit

Permalink
Merge pull request easybuilders#22239 from boegel/20250129204610_new_…
Browse files Browse the repository at this point in the history
…pr_fastText09220240313

{lib}[foss/2023a] fastText v0.9.2-20240313
  • Loading branch information
laraPPr authored Feb 3, 2025
2 parents 0aecc64 + b166611 commit 108cc67
Showing 1 changed file with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
easyblock = 'PythonPackage'

name = 'fastText'
local_commit = '1142dc4'
version = '0.9.2-20240313'

homepage = 'https://github.com/glut23/webvtt-py'
description = "fastText is a library for efficient learning of word representations and sentence classification"

toolchain = {'name': 'foss', 'version': '2023a'}

source_urls = ['https://github.com/facebookresearch/fastText/archive/']
sources = [{'download_filename': '%s.tar.gz' % local_commit, 'filename': SOURCE_TAR_GZ}]
checksums = ['c8b6cf146839a2716658fa5517a0810beed482caf2fc0bd2f63df10088d8d507']

builddependencies = [
('binutils', '2.40'),
]
dependencies = [
('Python', '3.11.3'),
('SciPy-bundle', '2023.07'), # for numpy
]

preinstallopts = 'make CC="$CC" CXXFLAGS="$CXXFLAGS -pthread" && '
preinstallopts += "mkdir -p %(installdir)s/bin && cp -a fasttext %(installdir)s/bin/ && "

download_dep_fail = True
sanity_pip_check = True
use_pip = True

sanity_check_paths = {
'files': ['bin/fasttext'],
'dirs': ['lib/python%(pyshortver)s/site-packages'],
}

sanity_check_commands = ["fasttext --help 2>&1 | grep 'usage: fasttext'"]

moduleclass = 'lib'

0 comments on commit 108cc67

Please sign in to comment.