-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
33 lines (28 loc) · 917 Bytes
/
Copy pathsetup.py
File metadata and controls
33 lines (28 loc) · 917 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
27
28
29
30
31
32
33
#!/usr/bin/env python
import distutils.core
import subprocess
import sys
# Importing setuptools adds some features like "setup.py develop", but
# it's optional so swallow the error if it's not there.
try:
import setuptools
except ImportError:
pass
kwargs = {}
major, minor = sys.version_info[:2]
if major >= 3:
import setuptools # setuptools is required for use_2to3
kwargs["use_2to3"] = True
distutils.core.setup(
name = "py-gravatar",
version = "0.0.3",
license = "MIT",
py_modules = ["gravatar"],
package_data = {"": ["README.md", "LICENSE"]},
author = "Alek Storm",
author_email = "alek.storm@gmail.com",
url = "http://alekstorm.github.com/pygravatar",
description = "Python bindings for the Gravatar API",
long_description = subprocess.Popen('pandoc -r markdown -w rst README.md', stdout=subprocess.PIPE, shell=True).communicate()[0],
**kwargs
)