cytopia / pwncat

pwncat - netcat on steroids with Firewall, IDS/IPS evasion, bind and reverse shell, self-injecting shell and port forwarding magic - and its fully scriptable with Python (PSE)
https://pwncat.org
MIT License
1.78k stars 211 forks source link

setup.py: Multiple top-level packages discovered in a flat-layout #113

Open blshkv opened 2 years ago

blshkv commented 2 years ago
 * Build system packages:
 *   dev-python/setuptools         : 62.1.0-r1
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-analyzer/pwncat-0.1.2/work/pwncat-0.1.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-analyzer/pwncat-0.1.2/work/pwncat-0.1.2 ...
 * python3_9: running distutils-r1_run_phase distutils-r1_python_compile
python3.9 setup.py build -j 12
/usr/lib/python3.9/site-packages/setuptools/dist.py:757: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
error: Multiple top-level packages discovered in a flat-layout: ['pse', 'man', 'art', 'share'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names
stratakis commented 2 years ago

Potential fix: https://github.com/pypa/setuptools/issues/3197#issuecomment-1078770109

blshkv commented 2 years ago

also, see a similar fix:

https://bugs.gentoo.org/836645 https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/virt-manager/files/virt-manager-4.0.0-setuptools-61-fix.patch?id=9683b216e6714e01f52cf54e3eda6167012c4b74

sajad002 commented 1 year ago

@blshkv

The first link helped me, thank you a lot. I've tested with setuptools-60.10.0, emerge successfully finishes.