github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/sdk/python/setup.py (about)

     1  # Copyright 2017 Intel Corporation
     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  # ------------------------------------------------------------------------------
    15  
    16  from __future__ import print_function
    17  
    18  import os
    19  import subprocess
    20  
    21  from setuptools import setup, find_packages
    22  
    23  
    24  if os.name == 'nt':
    25      conf_dir = "C:\\Program Files (x86)\\Intel\\sawtooth\\conf"
    26      data_dir = "C:\\Program Files (x86)\\Intel\\sawtooth\\data"
    27      log_dir = "C:\\Program Files (x86)\\Intel\\sawtooth\\logs"
    28  else:
    29      conf_dir = "/etc/sawtooth"
    30      data_dir = "/var/lib/sawtooth"
    31      log_dir = "/var/log/sawtooth"
    32  
    33  data_files = [
    34      (conf_dir, []),
    35      (os.path.join(conf_dir, "keys"), []),
    36      (data_dir, []),
    37      (log_dir, []),
    38  ]
    39  
    40  setup(
    41      name='sawtooth-sdk',
    42      version=subprocess.check_output(
    43          ['../../bin/get_version']).decode('utf-8').strip(),
    44      description='Sawtooth Python SDK',
    45      author='Hyperledger Sawtooth',
    46      url='https://github.com/hyperledger/sawtooth-core',
    47      packages=find_packages(),
    48      data_files=data_files,
    49      install_requires=[
    50          "colorlog",
    51          "sawtooth-signing",
    52          "protobuf",
    53          "pyzmq",
    54          "toml",
    55          "PyYAML",
    56      ])