From 1dee729aa347d6c41d4f6baa626a450ec6bb884d Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 9 Sep 2021 11:27:55 -0500 Subject: [PATCH 1/4] package missing files from cmake directory --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 5ff1ff6bd..c5d457e29 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ include CMakeLists.txt LICENSE README.md symengine_version.txt recursive-include symengine *.cpp *.h *.hpp CMakeLists.txt *.in *.cmake *.pyx *.pxd *.py *.pxi -recursive-include cmake *.cpp *.in *.cmake *.pyx +recursive-include cmake *.cpp *.in *.cmake *.pyx *.py *.txt From 8b8ed55cca796669f08a5637a23c8de7f99acc8a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 9 Sep 2021 12:23:46 -0500 Subject: [PATCH 2/4] check sdist --- bin/test_travis.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bin/test_travis.sh b/bin/test_travis.sh index 6d0f636ca..31599d2f8 100755 --- a/bin/test_travis.sh +++ b/bin/test_travis.sh @@ -5,6 +5,12 @@ set -e # Echo each command set -x +python setup.py sdist +mkdir dist-extract +cd dist-extract +tar -xvf ../dist/symengine-*.tar.gz +cd symengine-* + # Build inplace so that nosetests can be run inside source directory python3 setup.py install build_ext --inplace --symengine-dir=$our_install_dir @@ -13,10 +19,3 @@ python3 -m pip install pytest python3 -m pytest -s -v $PYTHON_SOURCE_DIR/symengine/tests/test_*.py mkdir -p empty && cd empty python3 $PYTHON_SOURCE_DIR/bin/test_python.py -cd .. - -if [[ "${TRIGGER_FEEDSTOCK}" == "yes" ]]; then - cd $PYTHON_SOURCE_DIR - ./bin/trigger_feedstock.sh -fi - From 6a8ae4c7f9fa038c2ac9c1b94d49dd893ad13d6a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 9 Sep 2021 13:13:42 -0500 Subject: [PATCH 3/4] Set PYTHON_SOURCE_DIR to the new directory --- bin/test_travis.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/test_travis.sh b/bin/test_travis.sh index 31599d2f8..764fc91d3 100755 --- a/bin/test_travis.sh +++ b/bin/test_travis.sh @@ -10,6 +10,7 @@ mkdir dist-extract cd dist-extract tar -xvf ../dist/symengine-*.tar.gz cd symengine-* +export PYTHON_SOURCE_DIR=$PWD # Build inplace so that nosetests can be run inside source directory python3 setup.py install build_ext --inplace --symengine-dir=$our_install_dir From 2c5ed3063c737db6ebc55eabd6f7509e6e3ff4cf Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 9 Sep 2021 13:20:28 -0500 Subject: [PATCH 4/4] Fix inplace tests --- bin/test_travis.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/test_travis.sh b/bin/test_travis.sh index 764fc91d3..d83b27db5 100755 --- a/bin/test_travis.sh +++ b/bin/test_travis.sh @@ -10,13 +10,12 @@ mkdir dist-extract cd dist-extract tar -xvf ../dist/symengine-*.tar.gz cd symengine-* -export PYTHON_SOURCE_DIR=$PWD # Build inplace so that nosetests can be run inside source directory python3 setup.py install build_ext --inplace --symengine-dir=$our_install_dir # Test python wrappers python3 -m pip install pytest -python3 -m pytest -s -v $PYTHON_SOURCE_DIR/symengine/tests/test_*.py +python3 -m pytest -s -v $PWD/symengine/tests/test_*.py mkdir -p empty && cd empty python3 $PYTHON_SOURCE_DIR/bin/test_python.py