-exclude-source-files with build_rpm
In setuptools, the bdist_egg command has an -exclude-source-files option that is missing in the bdist_rpm command.
So what’s the selfish sod to do if he wants to keep from distributing his source in an RPM ?
Including the install script below worked for me.
python setup.py bdist_rpm --install-script=install.sh
where install.sh is
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES #goodbye py source find $RPM_BUILD_ROOT -name \*.py -exec rm {} \; sed -i '/\.py$/d' INSTALLED_FILES
Leave a Reply
You must be logged in to post a comment.