Hi,
 
I have a setup() that uses a version control change number to set the
version of the package.  Part of the package includes some
console_script directives.  When the scripts are generated the
__requires__ and load_entry_point will be set to the exact version of
the package.  I would like to have it set to something less restrictive.
Is that possible?
 
Example
 
change = '12345'
 
setup( name='my-project', version='my-project.0.1.dev-r%s' % version, 
         entry_points={'console_scripts': ['my_script =
my_module:main']})
 
Will generate
 
my_script
__requires__ = 'my-project==0.1.dev-r12345'
import sys
from pkg_resources import load_entry_point
sys.exit(
    load_entry_point('my-project==0.1.dev-r12345', 'console_scripts',
'my_script')()
)
 
I would like it to change the requirement such that the script will run
with 'my-project==0.1.dev' regardless of the exact change number.
 
--
Thanks,
George A. Dowding
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to