e23f4d0646a3e8d28cc146c28574359585295249,setup.py,,,#,12

Before Change


// add platform dependant optional compilation argument
opt_arg=["-O3"]
import platform
if platform.system()=="Darwin":
  if platform.release()=="18.0.0":
      opt_arg.append("-stdlib=libc++") // correspond to a compilation problem with Mojave and XCode 10

After Change


// add platform dependant optional compilation argument
if sys.platform.startswith("darwin"):
  opt_arg.append("-stdlib=libc++")
  sdk_path = subprocess.check_output(["xcrun", "--show-sdk-path"])
  os.environ["CFLAGS"] = "-isysroot "{}"".format(sdk_path.rstrip().decode("utf-8"))

setup(name="POT",
      version=__version__,
      description="Python Optimal Transport Library",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: rflamary/POT
Commit Name: e23f4d0646a3e8d28cc146c28574359585295249
Time: 2020-02-28
Author: ncourty@irisa.fr
File Name: setup.py
Class Name:
Method Name:


Project Name: jakeret/tf_unet
Commit Name: dfb5016cefc3bad21ab900a1c8196c46d6bd2297
Time: 2017-12-29
Author: joel.akeret@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: uqfoundation/mystic
Commit Name: f8ffe7d5fe8f72587e95abeb63349b1ec129d1e2
Time: 2019-10-26
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: tests/__main__.py
Class Name:
Method Name:


Project Name: silvandeleemput/memcnn
Commit Name: ef9ba69b210f79ff72c1317a9b239d9a792d4070
Time: 2019-07-10
Author: silvandeleemput@gmail.com
File Name: memcnn/examples/tests/test_examples.py
Class Name:
Method Name: test_example_minimal