1- import os
1+ # Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License"). You
4+ # may not use this file except in compliance with the License. A copy of
5+ # the License is located at
6+ #
7+ # http://aws.amazon.com/apache2.0/
8+ #
9+ # or in the "license" file accompanying this file. This file is
10+ # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11+ # ANY KIND, either express or implied. See the License for the specific
12+ # language governing permissions and limitations under the License.
13+ from __future__ import absolute_import
14+
215from glob import glob
3- from os .path import basename
4- from os .path import splitext
16+ import os
517
618from setuptools import setup , find_packages
719
@@ -15,7 +27,7 @@ def read(fname):
1527 description = "Open source library for training and deploying models on Amazon SageMaker." ,
1628 packages = find_packages ('src' ),
1729 package_dir = {'' : 'src' },
18- py_modules = [splitext (basename (path ))[0 ] for path in glob ('src/*.py' )],
30+ py_modules = [os . splitext (os . basename (path ))[0 ] for path in glob ('src/*.py' )],
1931 long_description = read ('README.rst' ),
2032 author = "Amazon Web Services" ,
2133 url = 'https://github.com/aws/sagemaker-python-sdk/' ,
0 commit comments