Eliminado venv y www del repositorio, agrege un requirements igual
This commit is contained in:
@@ -11,13 +11,14 @@ import os
|
||||
import re
|
||||
import textwrap
|
||||
import marshal
|
||||
import warnings
|
||||
|
||||
from setuptools.extern import six
|
||||
|
||||
from pkg_resources import get_build_platform, Distribution, ensure_directory
|
||||
from pkg_resources import EntryPoint
|
||||
from setuptools.extension import Library
|
||||
from setuptools import Command
|
||||
from setuptools import Command, SetuptoolsDeprecationWarning
|
||||
|
||||
try:
|
||||
# Python 2.7 or >=3.2
|
||||
@@ -54,10 +55,11 @@ def write_stub(resource, pyfile):
|
||||
_stub_template = textwrap.dedent("""
|
||||
def __bootstrap__():
|
||||
global __bootstrap__, __loader__, __file__
|
||||
import sys, pkg_resources, imp
|
||||
import sys, pkg_resources
|
||||
from importlib.machinery import ExtensionFileLoader
|
||||
__file__ = pkg_resources.resource_filename(__name__, %r)
|
||||
__loader__ = None; del __bootstrap__, __loader__
|
||||
imp.load_dynamic(__name__,__file__)
|
||||
ExtensionFileLoader(__name__,__file__).load_module()
|
||||
__bootstrap__()
|
||||
""").lstrip()
|
||||
with open(pyfile, 'w') as f:
|
||||
@@ -278,13 +280,19 @@ class bdist_egg(Command):
|
||||
if ep is None:
|
||||
return 'w' # not an eggsecutable, do it the usual way.
|
||||
|
||||
warnings.warn(
|
||||
"Eggsecutables are deprecated and will be removed in a future "
|
||||
"version.",
|
||||
SetuptoolsDeprecationWarning
|
||||
)
|
||||
|
||||
if not ep.attrs or ep.extras:
|
||||
raise DistutilsSetupError(
|
||||
"eggsecutable entry point (%r) cannot have 'extras' "
|
||||
"or refer to a module" % (ep,)
|
||||
)
|
||||
|
||||
pyver = sys.version[:3]
|
||||
pyver = '{}.{}'.format(*sys.version_info)
|
||||
pkg = ep.module_name
|
||||
full = '.'.join(ep.attrs)
|
||||
base = ep.attrs[0]
|
||||
|
||||
Reference in New Issue
Block a user