-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (23 loc) · 792 Bytes
/
setup.py
File metadata and controls
25 lines (23 loc) · 792 Bytes
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
from distutils.core import setup
from setuptools.command.install import install
import urllib
import tarfile
import os
class CustomInstall(install):
def run(self):
install.run(self)
print "Installing latest dynamodblocal"
f, response = urllib.urlretrieve("https://s3.eu-central-1.amazonaws.com/dynamodb-local-frankfurt/dynamodb_local_latest.tar.gz")
bundle = tarfile.open(f)
bundle.extractall(path=self.install_scripts)
os.remove(f)
print "extracted latest dynamodb local"
setup(
name='dynamodblocal',
version='0.3dev',
packages=['dynamodblocal',],
license='The MIT License (MIT)',
long_description=open('README.txt').read(),
cmdclass={'install' : CustomInstall },
scripts=['scripts/dynamodblocal',]
)