Commit fcdb8761 authored by Aysar's avatar Aysar Committed by pkulzc
Browse files

Fix newline issue with sed on macOS in create_pycocotools_package.sh (#6563)

parent a156e203
...@@ -44,7 +44,7 @@ sed "s/\.\.\/common/common/g" pycocotools/_mask.pyx > _mask.pyx.updated ...@@ -44,7 +44,7 @@ sed "s/\.\.\/common/common/g" pycocotools/_mask.pyx > _mask.pyx.updated
cp -f _mask.pyx.updated pycocotools/_mask.pyx cp -f _mask.pyx.updated pycocotools/_mask.pyx
rm _mask.pyx.updated rm _mask.pyx.updated
sed "s/import matplotlib\.pyplot as plt/import matplotlib\nmatplotlib\.use\(\'Agg\'\)\nimport matplotlib\.pyplot as plt/g" pycocotools/coco.py > coco.py.updated sed "s/import matplotlib\.pyplot as plt/import matplotlib;matplotlib\.use\(\'Agg\'\);import matplotlib\.pyplot as plt/g" pycocotools/coco.py > coco.py.updated
cp -f coco.py.updated pycocotools/coco.py cp -f coco.py.updated pycocotools/coco.py
rm coco.py.updated rm coco.py.updated
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment