Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

47 rader
1.4 KiB

  1. #!/usr/bin/env python2
  2. # -*- coding: utf-8 -*-
  3. # setup.py --- Setup script for calculate-unix
  4. # Copyright 2016 Mir Calculate. http://www.calculate-linux.org
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. __app__ = "calculate-unix"
  18. __version__ = "3.5.0_alpha1"
  19. import os
  20. from glob import glob
  21. from distutils.core import setup
  22. from distutils.command import install_data as module_install_data
  23. from distutils.util import change_root, convert_path
  24. packages = [
  25. "calculate." + str('.'.join(root.split(os.sep)[1:]))
  26. for root, dirs, files in os.walk('pym/unix')
  27. if '__init__.py' in files
  28. ]
  29. print packages
  30. setup(
  31. name=__app__,
  32. version=__version__,
  33. description="Unix service for Calculate utilities",
  34. author="Calculate Ltd.",
  35. author_email="support@calculate.ru",
  36. url="http://calculate-linux.org",
  37. license="http://www.apache.org/licenses/LICENSE-2.0",
  38. package_dir={'calculate.unix': "pym/unix", },
  39. packages=packages)