[Distutils] Re: setup.py not included in source distribution

M.-A. Lemburg mal@lemburg.com
Thu Nov 7 07:46:15 2002


Thomas Heller wrote:
>>>Should absolute path names in MANIFEST be allowed or not?
>>
>>I think that would not be very useful... files in MANIFEST
>>should always be relative to the source distribution directory
>>which is usually the location of the setup.py file.
> 
> 
> In this case I suggest this patch:

+1

> Index: core.py
> ===================================================================
> RCS file: /cvsroot/python/distutils/distutils/core.py,v
> retrieving revision 1.52
> diff -c -r1.52 core.py
> *** core.py	4 Nov 2002 13:45:15 -0000	1.52
> --- core.py	7 Nov 2002 12:31:33 -0000
> ***************
> *** 87,93 ****
>           klass = Distribution
>   
>       if not attrs.has_key('script_name'):
> !         attrs['script_name'] = sys.argv[0]
>       if not attrs.has_key('script_args'):
>           attrs['script_args'] = sys.argv[1:]
>   
> --- 87,93 ----
>           klass = Distribution
>   
>       if not attrs.has_key('script_name'):
> !         attrs['script_name'] = os.path.basename(sys.argv[0])
>       if not attrs.has_key('script_args'):
>           attrs['script_args'] = sys.argv[1:]
>   
> 
> 
> 
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/