[BACK]Return to patch-setup.py CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / py-curl / patches

Annotation of pkgsrc/www/py-curl/patches/patch-setup.py, Revision 1.2

1.1       adam        1: $NetBSD$
                      2:
1.2     ! adam        3: Stick to distutils.
1.1       adam        4: Add multi Python variant support.
                      5:
1.2     ! adam        6: --- setup.py.orig      2018-06-02 04:59:02.000000000 +0000
1.1       adam        7: +++ setup.py
1.2     ! adam        8: @@ -10,12 +10,7 @@ VERSION = "7.43.0.2"
        !             9:
        !            10:  import glob, os, re, sys, subprocess
        !            11:  import distutils
        !            12: -try:
        !            13: -    import wheel
        !            14: -    if wheel:
        !            15: -        from setuptools import setup
        !            16: -except ImportError:
        !            17: -    from distutils.core import setup
        !            18: +from distutils.core import setup
        !            19:  from distutils.extension import Extension
        !            20:  from distutils.util import split_quoted
        !            21:  from distutils.version import LooseVersion
        !            22: @@ -605,9 +600,9 @@ def get_data_files():
1.1       adam       23:      # a list of tuples with (path to install to, a list of local files)
                     24:      data_files = []
                     25:      if sys.platform == "win32":
                     26: -        datadir = os.path.join("doc", PACKAGE)
                     27: +        datadir = os.path.join("doc", PACKAGE + sys.version[0:3])
                     28:      else:
                     29: -        datadir = os.path.join("share", "doc", PACKAGE)
                     30: +        datadir = os.path.join("share", "doc", PACKAGE  + sys.version[0:3])
                     31:      #
                     32:      files = ["AUTHORS", "ChangeLog", "COPYING-LGPL", "COPYING-MIT",
                     33:          "INSTALL.rst", "README.rst", "RELEASE-NOTES.rst"]

CVSweb <webmaster@jp.NetBSD.org>