From c8166d1e115379968b99bbe3bd422d46f0aab9cf Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Mon, 17 Jun 2024 13:42:39 -0700 Subject: [PATCH 1/4] Update pre_build_script.sh --- packaging/pre_build_script.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/packaging/pre_build_script.sh b/packaging/pre_build_script.sh index 366752f7ed..4bbd09694a 100644 --- a/packaging/pre_build_script.sh +++ b/packaging/pre_build_script.sh @@ -10,5 +10,3 @@ set -eux echo "This script is run before building torchao binaries" pip install setuptools wheel twine auditwheel -pip install -r requirements.txt -pip install -r dev-requirements.txt From 9f2ac6ce08c906e2afedc30a2f5cfa268199ab0a Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Mon, 17 Jun 2024 13:49:23 -0700 Subject: [PATCH 2/4] Update smoke_test.py --- packaging/smoke_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/smoke_test.py b/packaging/smoke_test.py index 2c2c873512..8ffa39ffde 100644 --- a/packaging/smoke_test.py +++ b/packaging/smoke_test.py @@ -6,14 +6,14 @@ # LICENSE file in the root directory of this source tree. import subprocess -import torchao.ops +import torchao def main(): """ Run torchao binary smoke tests like importing and performing simple ops """ - print(dir(torchao.ops)) + print(dir(torchao)) if __name__ == "__main__": From efa047401a9b80c57eb118864a1456ab8fd8f095 Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Mon, 17 Jun 2024 13:54:07 -0700 Subject: [PATCH 3/4] Update post_build_script.sh --- packaging/post_build_script.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packaging/post_build_script.sh b/packaging/post_build_script.sh index e036fcbcfe..3fea1bb6e1 100644 --- a/packaging/post_build_script.sh +++ b/packaging/post_build_script.sh @@ -30,6 +30,4 @@ popd MANYWHEEL_NAME=$(ls dist/) # Try to install the new wheel pip install "dist/${MANYWHEEL_NAME}" -# and validating it by running the unit tests. Some tests are failing here and -# there, so let's add more of them later -pytest -v test/test_ops.py +python -c "import torchao" && echo "Import successful" || echo "Import failed" From 5b3a639eb79d9a5c6e482be9067698cba9da3954 Mon Sep 17 00:00:00 2001 From: Mark Saroufim Date: Mon, 17 Jun 2024 14:13:37 -0700 Subject: [PATCH 4/4] Update post_build_script.sh --- packaging/post_build_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/post_build_script.sh b/packaging/post_build_script.sh index 3fea1bb6e1..de8ee956f2 100644 --- a/packaging/post_build_script.sh +++ b/packaging/post_build_script.sh @@ -30,4 +30,4 @@ popd MANYWHEEL_NAME=$(ls dist/) # Try to install the new wheel pip install "dist/${MANYWHEEL_NAME}" -python -c "import torchao" && echo "Import successful" || echo "Import failed" +python -c "import torchao"