manual changes

This commit is contained in:
Harmen Stoppels
2024-04-02 19:15:15 +02:00
parent 430b41efc6
commit eb77658b8f
3 changed files with 10 additions and 2 deletions

View File

@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack.package import *
@@ -85,3 +87,9 @@ class PyDocutils(PythonPackage):
# NOTE: This creates symbolic links to be able to run docutils scripts
# without .py file extension similarly to various linux distributions to
# increase compatibility with other packages
@run_after("install")
def post_install(self):
bin_path = self.prefix.bin
for file in os.listdir(bin_path):
if file.endswith(".py"):
os.symlink(os.path.join(bin_path, file), os.path.join(bin_path, file[:-3]))

View File

@@ -49,4 +49,4 @@ class PySetuptoolsRust(PythonPackage):
depends_on("py-toml@0.9:", when="@:0")
depends_on("py-typing-extensions@3.7.4.3:", when="@1:1.7")
# Historical dependencies
depends_on("rust", type="run")

View File

@@ -6,7 +6,7 @@
from spack.package import *
class PyTensorflowProbability(Package):
class PyTensorflowProbability(PythonPackage):
"""TensorFlow Probability (TFP) is a Python library built on
TensorFlow that makes it easy to combine probabilistic models and
deep learning on modern hardware (TPU, GPU). It's for data