You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. #!/bin/bash
  2. #
  3. # Edit LuxCore/pywheel/setup.y, update version there and in this file, than:
  4. #
  5. # ./utils/create_python_wheel.sh target-64-sse2 luxcorerender-v2.0-linux64
  6. # ./utils/create_python_wheel.sh target-64-sse2 luxcorerender-v2.0-linux64-opencl
  7. if [[ ! $2 ]] ; then
  8. echo " * Unable to create Python Wheel"
  9. exit 1
  10. fi
  11. TARGET=$1
  12. LUX_TAG=$2
  13. rm -rf $TARGET/$LUX_TAG-wheel
  14. mkdir -p $TARGET/$LUX_TAG-wheel/pyluxcore
  15. cp $LUX_TAG/pywheel/setup.py $TARGET/$LUX_TAG-wheel
  16. cp $LUX_TAG/pywheel/setup.cfg $TARGET/$LUX_TAG-wheel
  17. cp $LUX_TAG/pywheel/MANIFEST.in $TARGET/$LUX_TAG-wheel
  18. cp $LUX_TAG/pywheel/__init__.py $TARGET/$LUX_TAG-wheel/pyluxcore
  19. cp -r $LUX_TAG/src/pyluxcoretools/pyluxcoretools $TARGET/$LUX_TAG-wheel/pyluxcoretools
  20. cp $LUX_TAG/README.md $TARGET/$LUX_TAG-wheel/README.rst
  21. cp $LUX_TAG/AUTHORS.txt $TARGET/$LUX_TAG-wheel/AUTHORS.txt
  22. cp $LUX_TAG/COPYING.txt $TARGET/$LUX_TAG-wheel/LICENSE.txt
  23. cp $LUX_TAG/lib/*.so $TARGET/$LUX_TAG-wheel/pyluxcore
  24. cp $TARGET/lib/libOpenImageDenoise.so.0 $TARGET/lib/libembree3.so.3 $TARGET/lib/libtbb.so.2 $TARGET/lib/libtbbmalloc.so.2 $TARGET/$LUX_TAG-wheel/pyluxcore
  25. cd $TARGET/$LUX_TAG-wheel
  26. python3 setup.py bdist_wheel --plat-name manylinux1_x86_64
  27. #twine upload dist/luxcorerender-2.0-cp34-cp34m-manylinux1_x86_64.whl
  28. #
  29. mv dist/luxcorerender-2.0-cp34-cp34m-manylinux1_x86_64.whl dist/luxcorerender-2.0b-cp34-cp34m-manylinux1_x86_64.whl
  30. twine upload dist/luxcorerender-2.0b-cp34-cp34m-manylinux1_x86_64.whl
  31. cd -