File: setup.py.cmake_template

package info (click to toggle)
condor 23.9.6%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 60,012 kB
  • sloc: cpp: 528,272; perl: 87,066; python: 42,650; ansic: 29,558; sh: 11,271; javascript: 3,479; ada: 2,319; java: 619; makefile: 615; xml: 613; awk: 268; yacc: 78; fortran: 54; csh: 24
file content (70 lines) | stat: -rw-r--r-- 2,448 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from setuptools import setup
from setuptools.dist import Distribution
import os

package_name = "htcondor"
packages = "${PACKAGES}".split(';')
version = "${PACKAGE_VERSION}${APPEND_VERSION}"
long_description = open("${CMAKE_CURRENT_SOURCE_DIR}/README.rst", "r").read()

package_data = {}
if os.name == "posix":
    package_data["htcondor"] = ["*.so", "htcondor_libs/*.so*"]
    package_data["htcondor2"] = ["*.so", "htcondor_libs/*.so*"]
    package_data["classad"] = ["*.so"]
    package_data["classad2"] = ["*.so"]
    package_data["classad3"] = ["*.so"]
else:
    package_data["htcondor"] = ["*.pyd", "*.dll", "htcondor_libs/*.dll*"]
    package_data["htcondor2"] = ["*.pyd", "*.dll", "htcondor_libs/*.dll*"]
    package_data["classad"] = ["*.pyd", "*.dll"]
    package_data["classad2"] = ["*.pyd", "*.dll"]
    package_data["classad3"] = ["*.pyd", "*.dll"]

class BinaryDistribution(Distribution):
    """ Forces BinaryDistribution. """

    def has_ext_modules(self):
        return True

    def is_pure(self):
        return False


setup(
    name=package_name,
    version=version,
    url="http://htcondor.org/",
    license="ASL 2.0",
    description="HTCondor Python bindings",
    long_description=long_description,
    distclass=BinaryDistribution,
    packages=packages,
    package_data=package_data,
    zip_safe=False,
    author="The HTCondor Project",
    author_email="htcondor-admin@cs.wisc.edu",
    maintainer="Brian Bockelman, Jason Patton, Tim Theisen",
    include_package_data=True,
    keywords="htcondor classad htc dhtc condor",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Information Technology",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: Apache Software License",
        # 'Operating System :: MacOS',
        # 'Operating System :: Microsoft :: Windows',
        "Operating System :: POSIX :: Linux",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3",
        "Programming Language :: C++",
        "Programming Language :: Python :: Implementation :: CPython",
        "Topic :: Scientific/Engineering",
        "Topic :: Software Development",
        "Topic :: System :: Distributed Computing",
    ],
)