I’m testing distributing a Python extension module as an egg created with setuptools.
Here is my setup.py script:
from setuptools import setup, Extension
setup(
name = "Hello",
version = "0.1.0",
ext_modules = [Extension('Hello', ['Source/Hello.cpp'])]
)
Then I build the egg with “setup.py bdist_egg” and install it with easy_install.
Everything works. There is one problem though.
The source is compiled when I run “setup.py bdist_egg” and the egg contains the pyd.
However, I want to create an egg that contains the source, and the source to be compiled when the user installs the egg.
How should I change the setup script?
Janne Karila’s comment cleared away my confusion:
There is no sdist_egg.