mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 16:33:09 +01:00
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
Drop pkgutil-style namespace to prevent collision with other smpp.*
|
|
packages (e.g., smpp.pdu) and specify the package name/path explicitly.
|
|
The last one also prevents 'examples' installation into the site
|
|
packages.
|
|
|
|
1. https://projects.gentoo.org/python/guide/concept.html#adding-new-namespace-packages-to-gentoo
|
|
2. https://stackoverflow.com/questions/54430694/python-setup-py-how-to-get-find-packages-to-identify-packages-in-subdirectori
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -19,7 +19,11 @@ setup(
|
|
author_email="roger.hoover@gmail.com",
|
|
description="SMPP 3.4 client built on Twisted / Python3",
|
|
license='Apache License 2.0',
|
|
- packages=find_packages(exclude=["tests"]),
|
|
+ packages=["smpp.twisted"],
|
|
+ package_dir={
|
|
+ "": ".",
|
|
+ "smpp.twisted": "smpp/twisted",
|
|
+ },
|
|
long_description=read('README.md'),
|
|
long_description_content_type='text/markdown',
|
|
keywords="smpp twisted",
|
|
--- a/smpp/__init__.py
|
|
+++ /dev/null
|
|
@@ -1,16 +0,0 @@
|
|
-"""
|
|
-Copyright 2009-2010 Mozes, Inc.
|
|
-
|
|
- Licensed under the Apache License, Version 2.0 (the "License");
|
|
- you may not use this file except in compliance with the License.
|
|
- You may obtain a copy of the License at
|
|
-
|
|
- http://www.apache.org/licenses/LICENSE-2.0
|
|
-
|
|
- Unless required by applicable law or agreed to in writing, software
|
|
- distributed under the License is distributed on an "AS IS" BASIS,
|
|
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
|
|
- See the License for the specific language governing permissions and
|
|
- limitations under the License.
|
|
-"""
|
|
-__path__ = __import__('pkgutil').extend_path(__path__, __name__)
|
|
\ No newline at end of file
|