blob: cfd1f445e115b96210ef218c48a1a741a577b6be [file] [log] [blame]
niemeyer68ae2752003-09-28 01:20:02 +00001#!/usr/bin/python
niemeyerdebf3cd2005-02-23 18:33:30 +00002from distutils.sysconfig import get_python_lib
niemeyer68ae2752003-09-28 01:20:02 +00003from distutils.core import setup
niemeyerdebf3cd2005-02-23 18:33:30 +00004import glob
5import os
niemeyerdb8b18d2005-12-22 15:02:22 +00006from os.path import isfile, join
niemeyerdebf3cd2005-02-23 18:33:30 +00007
niemeyerdb8b18d2005-12-22 15:02:22 +00008if isfile("MANIFEST"):
niemeyerdebf3cd2005-02-23 18:33:30 +00009 os.unlink("MANIFEST")
10
niemeyerdb8b18d2005-12-22 15:02:22 +000011# Get PYTHONLIB with no prefix so --prefix installs work.
niemeyera5cb5cf2005-12-22 18:53:10 +000012PYTHONLIB = join(get_python_lib(standard_lib=1, prefix=''), 'site-packages')
niemeyerdb8b18d2005-12-22 15:02:22 +000013ZONEINFO = join("dateutil", "zoneinfo")
niemeyer68ae2752003-09-28 01:20:02 +000014
niemeyercc77d432003-10-09 02:57:39 +000015setup(name="python-dateutil",
niemeyer34788e42005-12-22 19:00:19 +000016 version = "1.2",
niemeyer68ae2752003-09-28 01:20:02 +000017 description = "Extensions to the standard python 2.3+ datetime module",
18 author = "Gustavo Niemeyer",
niemeyerdb8b18d2005-12-22 15:02:22 +000019 author_email = "gustavo@niemeyer.net",
20 url = "http://labix.org/python-dateutil",
niemeyer68ae2752003-09-28 01:20:02 +000021 license = "PSF License",
22 long_description =
23"""\
24The dateutil module provides powerful extensions to the standard
25datetime module, available in Python 2.3+.
26""",
niemeyerb5cbf032005-02-24 17:45:10 +000027 packages = ["dateutil", "dateutil.zoneinfo"],
niemeyerdb8b18d2005-12-22 15:02:22 +000028 data_files = [(join(PYTHONLIB, ZONEINFO),
29 glob.glob(join(ZONEINFO, "zoneinfo*.tar.*")))],
niemeyer68ae2752003-09-28 01:20:02 +000030 )