forked from shotgunsoftware/python-api
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (39 loc) · 1.37 KB
/
setup.py
File metadata and controls
46 lines (39 loc) · 1.37 KB
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
# -*- coding: utf-8 -*-
# Copyright (c) 2019 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.
import sys
from setuptools import setup, find_packages
import package
f = open("README.md")
readme = f.read().strip()
f = open("LICENSE")
license = f.read().strip()
# For python 2.4 support
script_args = sys.argv[1:]
if (sys.version_info[0] <= 2) or (
sys.version_info[0] == 2 and sys.version_info[1] <= 5
):
if "install" in script_args and "--no-compile" not in script_args:
script_args.append("--no-compile")
setup(
name="shotgun_api3",
version="3.3.4" + "+{0}".format(package._rdoVersion),
description="Shotgun Python API ",
long_description=readme,
author="Shotgun Software, RodeoFX",
author_email="shotgundev@rodeofx.com",
url="https://github.com/rodeofx/python-api",
license=license,
packages=find_packages(exclude=("tests",)),
script_args=script_args,
include_package_data=True,
package_data={"": ["cacerts.txt", "cacert.pem"]},
zip_safe=False,
)