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

setup(name="POT",
      version=__version__,
      description="Python Optimal Transport Library",
      long_description=README,

After Change


opt_arg=["-O3"]

// 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",
      long_description=README,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: KhronosGroup/NNEF-Tools
Commit Name: 2470071fd9da49c6b5a5165d1648e6d04e93777d
Time: 2021-01-14
Author: viktor.gyenes@aimotive.com
File Name: nnef_tools/generate.py
Class Name:
Method Name: main


Project Name: pavlin-policar/openTSNE
Commit Name: fb6d0ee9cb059352108401518563f2af85d04833
Time: 2018-11-13
Author: pavlin.g.p@gmail.com
File Name: setup.py
Class Name:
Method Name: