Skip to content
Snippets Groups Projects
Commit cc79e1058cdf authored by niemeyer <>'s avatar niemeyer &lt;&gt;
Browse files

Using .tar.gz extension, so that it works better with setuptools.

parent 239977023b01
Branches
No related tags found
No related merge requests found
Version 1.4.1
-------------
Version 1.4
-----------
......
......@@ -6,4 +6,4 @@
"""
__author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>"
__license__ = "PSF License"
__version__ = "1.3"
__version__ = "1.4.1"
[bdist_rpm]
doc_files = README LICENSE
use_bzip2 = 1
[sdist]
formats = bztar
#!/usr/bin/python
from distutils.sysconfig import get_python_lib
from distutils.core import setup
from os.path import isfile, join
import glob
import os
import re
......@@ -4,10 +2,12 @@
from os.path import isfile, join
import glob
import os
import re
from setuptools import setup
if isfile("MANIFEST"):
os.unlink("MANIFEST")
......@@ -9,12 +9,8 @@
if isfile("MANIFEST"):
os.unlink("MANIFEST")
# Get PYTHONLIB with no prefix so --prefix installs work.
PYTHONLIB = join(get_python_lib(standard_lib=1, prefix=''), 'site-packages')
ZONEINFO = join("dateutil", "zoneinfo")
VERSION = re.search('__version__ = "([^"]+)"',
open("dateutil/__init__.py").read()).group(1)
......@@ -32,6 +28,6 @@
datetime module, available in Python 2.3+.
""",
packages = ["dateutil", "dateutil.zoneinfo"],
data_files = [(join(PYTHONLIB, ZONEINFO),
glob.glob(join(ZONEINFO, "zoneinfo*.tar.*")))],
package_data={"": ["*.tar.gz"]},
include_package_data=True,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment