setup.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. import os
  9. import platform
  10. import pathlib
  11. import sys
  12. from setuptools import setup, find_packages
  13. from setuptools.command.develop import develop
  14. from setuptools.command.build_py import build_py
  15. if sys.platform == 'win32':
  16. # The library folder structure of windows omits the extra 'python3.10' folder level for the site-packages, so we have to
  17. # adjust to where to read the project root based on this file
  18. PROJECT_ROOT = pathlib.Path(os.path.dirname(__file__)).parent.parent
  19. else:
  20. PROJECT_ROOT = pathlib.Path(os.path.dirname(__file__)).parent.parent.parent
  21. README_FILE = PROJECT_ROOT / 'README.md'
  22. PYTHON_64 = platform.architecture()[0] == '64bit'
  23. if __name__ == '__main__':
  24. if not PYTHON_64:
  25. raise RuntimeError("32-bit Python is not a supported platform.")
  26. with README_FILE.open() as f:
  27. long_description = f.read()
  28. setup(
  29. name="pyside2",
  30. version="5.15.2.1",
  31. description='Pyside2',
  32. long_description=long_description,
  33. packages=['PySide2', 'shiboken2'],
  34. install_requires=[
  35. ],
  36. tests_require=[
  37. ],
  38. entry_points={
  39. },
  40. )