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.

48 lines
1.5 KiB

  1. #!/usr/bin/env python2
  2. # -*- coding: utf-8 -*-
  3. # setup.py --- Setup script for calculate-update
  4. # Copyright 2012 Calculate Ltd. 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-update"
  18. __version__ = "3.2.2"
  19. import os
  20. from glob import glob
  21. from distutils.core import setup
  22. from calculate.install_data import install_data
  23. data_files = [('/usr/libexec/calculate', [('data/cl-git-wrapper', 0755)])]
  24. packages = [
  25. "calculate."+str('.'.join(root.split(os.sep)[1:]))
  26. for root, dirs, files in os.walk('pym/update')
  27. if '__init__.py' in files
  28. ]
  29. setup(
  30. name=__app__,
  31. version=__version__,
  32. description="Update system utilities",
  33. author="Calculate Ltd.",
  34. author_email="support@calculate.ru",
  35. url="http://calculate-linux.org",
  36. license="http://www.apache.org/licenses/LICENSE-2.0",
  37. package_dir = {'calculate.update': "pym/update"},
  38. packages = packages,
  39. data_files=data_files,
  40. cmdclass={'install_data': install_data})