forked from aicpp/cloudsync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
26 lines (21 loc) · 638 Bytes
/
setup.py
File metadata and controls
26 lines (21 loc) · 638 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
26
from setuptools import setup
from setuptools.command.install import install
from pathlib import Path
class CreateLocalStateDir(install):
"""
Creates a local state directory to store
hashes, source and target files, keys, etc.
"""
def run(self):
home = Path.home() / ".cloudsync"
home.mkdir(parents=True, exist_ok=True)
install.run(self)
setup(
name='cloudsync',
version='0.1',
description='A useful module',
author='aicpp(https://github.com/aicpp), Kyle Barry',
packages=['cloudsync'],
install_requires=['dropbox'],
cmdclass={'install': CreateLocalStateDir},
)