Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Updates python setup.py for recent license changes #14778

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

perdasilva
Copy link
Contributor

@perdasilva perdasilva commented Apr 23, 2019

Description

A recent PR #14726 has altered the way the static build deals with licenses. This has broken the setup.py script for building the release pip packages. This PR fixes this problem.

I've re-added some of the removed licenses, this should be confirmed to be OK by the submitters of the aforementioned PR. @lanking520 could you please take a look?

@perdasilva perdasilva requested a review from szha as a code owner April 23, 2019 16:06
@@ -34,6 +34,7 @@ $MAKE DEPS_PATH=$DEPS_PATH $PWD/3rdparty/tvm/nnvm/lib/libnnvm.a
$MAKE DEPS_PATH=$DEPS_PATH PSLITE

if [[ $VARIANT == *mkl ]]; then
MKLDNN_LICENSE='license.txt'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These licenses are included as part of the source LICENSE. There is no need to re-add them

@@ -66,12 +66,8 @@ def has_ext_modules(self):
shutil.copy(LIB_PATH[0], os.path.join(CURRENT_DIR, 'mxnet'))

# copy license and notice
shutil.copy(os.path.join(CURRENT_DIR, 'mxnet-build/LICENSE'),
os.path.join(CURRENT_DIR, 'mxnet/LICENSE'))
shutil.copy(os.path.join(CURRENT_DIR, 'mxnet-build/DISCLAIMER'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not currently add this DISCLAIMER. Can you add it to the build similarly to https://github.com/apache/incubator-mxnet/pull/14726/files#diff-2c9b07f53d24caa1ac38f1eb9c371118R70?

@perdasilva
Copy link
Contributor Author

@zachgk I've addressed your comments ^^ thanks for taking a look!

Copy link
Contributor

@lebeg lebeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@lanking520
Copy link
Member

@szha

@ThomasDelteil ThomasDelteil merged commit 3d3803e into apache:master Apr 25, 2019
haohuanw pushed a commit to haohuanw/incubator-mxnet that referenced this pull request Jun 23, 2019
* Updates license packing

* Adds DISCLAIMER to static build licenses
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants