!557 安全编译选项

Merge pull request !557 from MingzhenWang/setup1
This commit is contained in:
MingzhenWang 2024-01-29 14:01:30 +00:00 committed by i-robot
parent 1e68a8cf52
commit 52d69a9170
1 changed files with 1 additions and 6 deletions

View File

@ -25,10 +25,7 @@ __description__ = 'AscendSpeed for LLMs of Ascend'
__version__ = '0.0.1' __version__ = '0.0.1'
__author__ = 'Ascend' __author__ = 'Ascend'
__long_description__ = 'ModelLink for LLMs of Ascend' __long_description__ = 'ModelLink for LLMs of Ascend'
__url__ = 'https://gitee.com/ascend/ModelLink'
__download_url__ = 'https://gitee.com/ascend/ModelLink/release'
__keywords__ = 'Ascend, langauge, deep learning, NLP' __keywords__ = 'Ascend, langauge, deep learning, NLP'
__license__ = 'See https://gitee.com/ascend/ModelLink'
__package_name__ = 'modellink' __package_name__ = 'modellink'
__contact_names__ = 'Ascend' __contact_names__ = 'Ascend'
@ -72,7 +69,7 @@ try:
'-I' + imp.find_module('torch_npu')[1] + "/include/third_party/acl/inc", '-I' + imp.find_module('torch_npu')[1] + "/include/third_party/acl/inc",
'-I' + ASCEND_TOOLKIT_HOME + '/include/', '-I' + ASCEND_TOOLKIT_HOME + '/include/',
'-fstack-protector-all', '-Wl,-z,relro,-z,now,-z,noexecstack', '-fstack-protector-all', '-Wl,-z,relro,-z,now,-z,noexecstack',
'-fPIC', '-pie', '-Wl,--disable-new-dtags,--rpath', '-fPIC', '-pie', '-Wl,--disable-new-dtags,--rpath', '-s',
], ],
) )
exts.append(ext_ops) exts.append(ext_ops)
@ -91,11 +88,9 @@ setuptools.setup(
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
# The project's main homepage. # The project's main homepage.
url=__url__,
author=__contact_names__, author=__contact_names__,
maintainer=__contact_names__, maintainer=__contact_names__,
# The licence under which the project is released # The licence under which the project is released
license=__license__,
classifiers=[ classifiers=[
'Intended Audience :: Developers', 'Intended Audience :: Developers',
'Intended Audience :: Science/Research', 'Intended Audience :: Science/Research',