mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
GH-1230 Use find_namespace_packages()
This commit is contained in:
parent
86d542e559
commit
70dba8e137
6 changed files with 6 additions and 44 deletions
14
setup.py
14
setup.py
|
|
@ -176,14 +176,12 @@ if __name__ == "__main__":
|
|||
"License :: OSI Approved :: MIT License",
|
||||
],
|
||||
package_dir={"": "src"},
|
||||
packages=[
|
||||
"debugpy",
|
||||
"debugpy.adapter",
|
||||
"debugpy.common",
|
||||
"debugpy.launcher",
|
||||
"debugpy.server",
|
||||
"debugpy._vendored",
|
||||
],
|
||||
packages=setuptools.find_namespace_packages(
|
||||
include=[
|
||||
"debugpy",
|
||||
"debugpy.*",
|
||||
]
|
||||
),
|
||||
package_data={
|
||||
"debugpy": ["ThirdPartyNotices.txt"],
|
||||
"debugpy._vendored": [
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||
try:
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
except ImportError:
|
||||
import pkgutil
|
||||
__path__ = pkgutil.extend_path(__path__, __name__)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
try:
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
except ImportError:
|
||||
import pkgutil
|
||||
__path__ = pkgutil.extend_path(__path__, __name__)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
try:
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
except ImportError:
|
||||
import pkgutil
|
||||
__path__ = pkgutil.extend_path(__path__, __name__)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
try:
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
except ImportError:
|
||||
import pkgutil
|
||||
__path__ = pkgutil.extend_path(__path__, __name__)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
try:
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
except ImportError:
|
||||
import pkgutil
|
||||
__path__ = pkgutil.extend_path(__path__, __name__)
|
||||
Loading…
Add table
Add a link
Reference in a new issue