setup.py 1.3 KB

123456789101112131415161718192021222324252627282930
  1. # Copyright 2019 Espressif Systems (Shanghai) PTE LTD
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http:#www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. import os
  15. from setuptools import setup
  16. setup(name='esp-windows-curses',
  17. version='0.1',
  18. description='Wrapper for the windows-curses package',
  19. url='https://www.espressif.com',
  20. author='Espressif Systems',
  21. license='Apache License 2.0',
  22. author_email='donotreply@espressif.com',
  23. zip_safe=False,
  24. # This wrapper exists only because of the following install_requires statement which ensures that the package
  25. # dependency is not added for MSYS2 where it cannot be installed. There is no PEP 508 environment marker to
  26. # detect MSYS2.
  27. install_requires=('' if 'MSYSTEM' in os.environ else 'windows-curses; sys_platform == "win32"',)
  28. )