1*a58d3d2aSXin Li""" 2*a58d3d2aSXin Li/* Copyright (c) 2023 Amazon 3*a58d3d2aSXin Li Written by Jan Buethe */ 4*a58d3d2aSXin Li/* 5*a58d3d2aSXin Li Redistribution and use in source and binary forms, with or without 6*a58d3d2aSXin Li modification, are permitted provided that the following conditions 7*a58d3d2aSXin Li are met: 8*a58d3d2aSXin Li 9*a58d3d2aSXin Li - Redistributions of source code must retain the above copyright 10*a58d3d2aSXin Li notice, this list of conditions and the following disclaimer. 11*a58d3d2aSXin Li 12*a58d3d2aSXin Li - Redistributions in binary form must reproduce the above copyright 13*a58d3d2aSXin Li notice, this list of conditions and the following disclaimer in the 14*a58d3d2aSXin Li documentation and/or other materials provided with the distribution. 15*a58d3d2aSXin Li 16*a58d3d2aSXin Li THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17*a58d3d2aSXin Li ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18*a58d3d2aSXin Li LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19*a58d3d2aSXin Li A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 20*a58d3d2aSXin Li OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21*a58d3d2aSXin Li EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22*a58d3d2aSXin Li PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 23*a58d3d2aSXin Li PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24*a58d3d2aSXin Li LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25*a58d3d2aSXin Li NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26*a58d3d2aSXin Li SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27*a58d3d2aSXin Li*/ 28*a58d3d2aSXin Li""" 29*a58d3d2aSXin Li 30*a58d3d2aSXin Li#!/usr/bin/env/python 31*a58d3d2aSXin Liimport os 32*a58d3d2aSXin Lifrom setuptools import setup 33*a58d3d2aSXin Li 34*a58d3d2aSXin Lilib_folder = os.path.dirname(os.path.realpath(__file__)) 35*a58d3d2aSXin Li 36*a58d3d2aSXin Liwith open(os.path.join(lib_folder, 'requirements.txt'), 'r') as f: 37*a58d3d2aSXin Li install_requires = list(f.read().splitlines()) 38*a58d3d2aSXin Li 39*a58d3d2aSXin Liprint(install_requires) 40*a58d3d2aSXin Li 41*a58d3d2aSXin Lisetup(name='dnntools', 42*a58d3d2aSXin Li version='1.0', 43*a58d3d2aSXin Li author='Jan Buethe', 44*a58d3d2aSXin Li author_email='[email protected]', 45*a58d3d2aSXin Li description='Non-Standard tools for deep neural network training with PyTorch', 46*a58d3d2aSXin Li packages=['dnntools', 'dnntools.sparsification', 'dnntools.quantization'], 47*a58d3d2aSXin Li install_requires=install_requires 48*a58d3d2aSXin Li ) 49