distutils.core.setup console script entry point?

distutils, installation, python, python-3.x

Solution

You can't, not with `distutils`. It does not support `entry_points`, that's a setuptools-only feature.

Use `setuptools` instead; it supports Python 3.

Problem

I used to distribute my python programs with `setuptools.setup`. But now I want to use `distutils.core.setup`. With `setuptools` I used a code similar to this: ``` setup( name = "radish", version = "0.01.00", description = "Behaviour-Driven-Development tool for python", author = "Timo Furrer", author_email = "tuxtimo@gmail.com", url = "http://github.com/timofurrer/radish", packages = [ "radish", "radish/Writers" ], entry_points = { "console_scripts": [ "radish = radish.main:main", ] }, package_data = { "radish": [ "*.md" ] } ... ) ``` I want to do the same with `distutils` - but there is no `entry_points` available. How can I manage this? How can I specify my new command?

Original source