[Distutils] setuptools package rpm issue
xiaojun.gou at nnct-nsn.com
xiaojun.gou at nnct-nsn.com
Wed Apr 11 05:53:25 EDT 2018
hi,
When i use the latest python version 3.6.5 to package the setuptools version 39.0.1 to rpm,the os is readhat 6.5.i have some problem.
I use blow command to package it:
python3 setup.py bdist_rpm --requires "Python3-nsn" --no-autoreq --packager "xiaojun.gou at nnct-nsn.com" --binary-only
Then the error occured,the error messages is like this:
Processing files: setuptools-39.0.1.post20180411-1.noarch
error: Two files on one line: /usr/local/python3/lib/python3.6/site-packages/setuptools/script
error: File must begin with "/": (dev).tmpl
error: Two files on one line: /usr/local/python3/lib/python3.6/site-packages/setuptools/command/launcher
error: File must begin with "/": manifest.xml
RPM build errors:
Two files on one line: /usr/local/python3/lib/python3.6/site-packages/setuptools/script
File must begin with "/": (dev).tmpl
Two files on one line: /usr/local/python3/lib/python3.6/site-packages/setuptools/command/launcher
File must begin with "/": manifest.xml
error: command 'rpmbuild' failed with exit status 1
I search the internet,and found this url:https://stackoverflow.com/questions/26718001/cannot-create-setuptools-rpm-error-two-files-on-one-line# . I followed it ,and found the above two files in the ./build/bdist.linux-x86_64/rpm/BUILD/setuptools-39.0.1.post20180411/INSTALLED_FILES file,there are spaces.
Can you fix it?
Email:xiaojun.gou at nnct-nsn.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20180411/e910ba33/attachment.html>
More information about the Distutils-SIG
mailing list