You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"benchmarks","path":"benchmarks","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"sklearn","path":"sklearn","contentType":"directory"},{"name":".coveragerc","path":".coveragerc","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"AUTHORS.rst","path":"AUTHORS.rst","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"COPYING","path":"COPYING","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"site.cfg","path":"site.cfg","contentType":"file"}],"totalCount":18}},"fileTreeProcessingTime":7.992387,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":14627662,"defaultBranch":"master","name":"scikit-learn","ownerLogin":"rajgopalc","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2013-11-22T19:39:46.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1449694?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1616260661.85071","canEdit":false,"refType":"branch","currentOid":"b3aff113cc476ce6ca3e7c0ee541c73474800413"},"path":"setup.py","currentUser":null,"blob":{"rawLines":["#! /usr/bin/env python","#","# Copyright (C) 2007-2009 Cournapeau David \u003ccournape@gmail.com\u003e","# 2010 Fabian Pedregosa \u003cfabian.pedregosa@inria.fr\u003e","","descr = \"\"\"A set of python modules for machine learning and data mining\"\"\"","","import sys","import os","import shutil","from distutils.command.clean import clean as Clean","","if sys.version_info[0] \u003c 3:"," import __builtin__ as builtins","else:"," import builtins","","# This is a bit (!) hackish: we are setting a global variable so that the main","# sklearn __init__ can detect if it is being loaded by the setup routine, to","# avoid attempting to load components that aren't built yet.","builtins.__SKLEARN_SETUP__ = True","","DISTNAME = 'scikit-learn'","DESCRIPTION = 'A set of python modules for machine learning and data mining'","LONG_DESCRIPTION = open('README.rst').read()","MAINTAINER = 'Andreas Mueller'","MAINTAINER_EMAIL = 'amueller@ais.uni-bonn.de'","URL = 'http://scikit-learn.org'","LICENSE = 'new BSD'","DOWNLOAD_URL = 'http://sourceforge.net/projects/scikit-learn/files/'","","# We can actually import a restricted version of sklearn that","# does not need the compiled code","import sklearn","","VERSION = sklearn.__version__","","###############################################################################","# Optional setuptools features","# We need to import setuptools early, if we want setuptools features,","# as it monkey-patches the 'setup' function","","# For some commands, use setuptools","if len(set(('develop', 'release', 'bdist_egg', 'bdist_rpm',"," 'bdist_wininst', 'install_egg_info', 'build_sphinx',"," 'egg_info', 'easy_install', 'upload',"," '--single-version-externally-managed',"," )).intersection(sys.argv)) \u003e 0:"," import setuptools"," extra_setuptools_args = dict("," zip_safe=False, # the package can run out of an .egg file"," include_package_data=True,"," )","else:"," extra_setuptools_args = dict()","","###############################################################################","","class CleanCommand(Clean):"," description = \"Remove build directories, and compiled file in the source tree\"",""," def run(self):"," Clean.run(self)"," if os.path.exists('build'):"," shutil.rmtree('build')"," for dirpath, dirnames, filenames in os.walk('sklearn'):"," for filename in filenames:"," if (filename.endswith('.so') or filename.endswith('.pyd')"," or filename.endswith('.dll')"," or filename.endswith('.pyc')):"," os.unlink(os.path.join(dirpath, filename))","","","","###############################################################################","def configuration(parent_package='', top_path=None):"," if os.path.exists('MANIFEST'):"," os.remove('MANIFEST')",""," from numpy.distutils.misc_util import Configuration"," config = Configuration(None, parent_package, top_path)",""," # Avoid non-useful msg:"," # \"Ignoring attempt to set 'name' (from ... \""," config.set_options(ignore_setup_xxx_py=True,"," assume_default_configuration=True,"," delegate_options_to_subpackages=True,"," quiet=True)",""," config.add_subpackage('sklearn')",""," return config","","","def setup_package():"," metadata = dict(name=DISTNAME,"," maintainer=MAINTAINER,"," maintainer_email=MAINTAINER_EMAIL,"," description=DESCRIPTION,"," license=LICENSE,"," url=URL,"," version=VERSION,"," download_url=DOWNLOAD_URL,"," long_description=LONG_DESCRIPTION,"," classifiers=['Intended Audience :: Science/Research',"," 'Intended Audience :: Developers',"," 'License :: OSI Approved',"," 'Programming Language :: C',"," 'Programming Language :: Python',"," 'Topic :: Software Development',"," 'Topic :: Scientific/Engineering',"," 'Operating System :: Microsoft :: Windows',"," 'Operating System :: POSIX',"," 'Operating System :: Unix',"," 'Operating System :: MacOS',"," 'Programming Language :: Python :: 2',"," 'Programming Language :: Python :: 2.6',"," 'Programming Language :: Python :: 2.7',"," 'Programming Language :: Python :: 3',"," 'Programming Language :: Python :: 3.3',"," ],"," cmdclass={'clean': CleanCommand},"," **extra_setuptools_args)",""," if (len(sys.argv) \u003e= 2"," and ('--help' in sys.argv[1:] or sys.argv[1]"," in ('--help-commands', 'egg_info', '--version', 'clean'))):",""," # For these actions, NumPy is not required."," #"," # They are required to succeed without Numpy for example when"," # pip is used to install Scikit when Numpy is not yet present in"," # the system."," try:"," from setuptools import setup"," except ImportError:"," from distutils.core import setup",""," metadata['version'] = VERSION"," else:"," from numpy.distutils.core import setup",""," metadata['configuration'] = configuration",""," setup(**metadata)","","","if __name__ == \"__main__\":"," setup_package()"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/rajgopalc/scikit-learn/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"setup.py","displayUrl":"https://github.com/rajgopalc/scikit-learn/blob/master/setup.py?raw=true","headerInfo":{"blobSize":"5.45 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"b50a0c8","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Frajgopalc%2Fscikit-learn%2Fblob%2Fmaster%2Fsetup.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"149","truncatedSloc":"121"},"mode":"executable file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/rajgopalc/scikit-learn/blob/master/setup.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/rajgopalc/scikit-learn/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/rajgopalc/scikit-learn/raw/refs/heads/master/setup.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"descr","kind":"constant","ident_start":156,"ident_end":161,"extent_start":156,"extent_end":230,"fully_qualified_name":"descr","ident_utf16":{"start":{"line_number":5,"utf16_col":0},"end":{"line_number":5,"utf16_col":5}},"extent_utf16":{"start":{"line_number":5,"utf16_col":0},"end":{"line_number":5,"utf16_col":74}}},{"name":"DISTNAME","kind":"constant","ident_start":661,"ident_end":669,"extent_start":661,"extent_end":686,"fully_qualified_name":"DISTNAME","ident_utf16":{"start":{"line_number":22,"utf16_col":0},"end":{"line_number":22,"utf16_col":8}},"extent_utf16":{"start":{"line_number":22,"utf16_col":0},"end":{"line_number":22,"utf16_col":25}}},{"name":"DESCRIPTION","kind":"constant","ident_start":687,"ident_end":698,"extent_start":687,"extent_end":763,"fully_qualified_name":"DESCRIPTION","ident_utf16":{"start":{"line_number":23,"utf16_col":0},"end":{"line_number":23,"utf16_col":11}},"extent_utf16":{"start":{"line_number":23,"utf16_col":0},"end":{"line_number":23,"utf16_col":76}}},{"name":"LONG_DESCRIPTION","kind":"constant","ident_start":764,"ident_end":780,"extent_start":764,"extent_end":808,"fully_qualified_name":"LONG_DESCRIPTION","ident_utf16":{"start":{"line_number":24,"utf16_col":0},"end":{"line_number":24,"utf16_col":16}},"extent_utf16":{"start":{"line_number":24,"utf16_col":0},"end":{"line_number":24,"utf16_col":44}}},{"name":"MAINTAINER","kind":"constant","ident_start":809,"ident_end":819,"extent_start":809,"extent_end":839,"fully_qualified_name":"MAINTAINER","ident_utf16":{"start":{"line_number":25,"utf16_col":0},"end":{"line_number":25,"utf16_col":10}},"extent_utf16":{"start":{"line_number":25,"utf16_col":0},"end":{"line_number":25,"utf16_col":30}}},{"name":"MAINTAINER_EMAIL","kind":"constant","ident_start":840,"ident_end":856,"extent_start":840,"extent_end":885,"fully_qualified_name":"MAINTAINER_EMAIL","ident_utf16":{"start":{"line_number":26,"utf16_col":0},"end":{"line_number":26,"utf16_col":16}},"extent_utf16":{"start":{"line_number":26,"utf16_col":0},"end":{"line_number":26,"utf16_col":45}}},{"name":"URL","kind":"constant","ident_start":886,"ident_end":889,"extent_start":886,"extent_end":917,"fully_qualified_name":"URL","ident_utf16":{"start":{"line_number":27,"utf16_col":0},"end":{"line_number":27,"utf16_col":3}},"extent_utf16":{"start":{"line_number":27,"utf16_col":0},"end":{"line_number":27,"utf16_col":31}}},{"name":"LICENSE","kind":"constant","ident_start":918,"ident_end":925,"extent_start":918,"extent_end":937,"fully_qualified_name":"LICENSE","ident_utf16":{"start":{"line_number":28,"utf16_col":0},"end":{"line_number":28,"utf16_col":7}},"extent_utf16":{"start":{"line_number":28,"utf16_col":0},"end":{"line_number":28,"utf16_col":19}}},{"name":"DOWNLOAD_URL","kind":"constant","ident_start":938,"ident_end":950,"extent_start":938,"extent_end":1006,"fully_qualified_name":"DOWNLOAD_URL","ident_utf16":{"start":{"line_number":29,"utf16_col":0},"end":{"line_number":29,"utf16_col":12}},"extent_utf16":{"start":{"line_number":29,"utf16_col":0},"end":{"line_number":29,"utf16_col":68}}},{"name":"VERSION","kind":"constant","ident_start":1120,"ident_end":1127,"extent_start":1120,"extent_end":1149,"fully_qualified_name":"VERSION","ident_utf16":{"start":{"line_number":35,"utf16_col":0},"end":{"line_number":35,"utf16_col":7}},"extent_utf16":{"start":{"line_number":35,"utf16_col":0},"end":{"line_number":35,"utf16_col":29}}},{"name":"CleanCommand","kind":"class","ident_start":1973,"ident_end":1985,"extent_start":1967,"extent_end":2549,"fully_qualified_name":"CleanCommand","ident_utf16":{"start":{"line_number":58,"utf16_col":6},"end":{"line_number":58,"utf16_col":18}},"extent_utf16":{"start":{"line_number":58,"utf16_col":0},"end":{"line_number":70,"utf16_col":62}}},{"name":"description","kind":"constant","ident_start":1998,"ident_end":2009,"extent_start":1998,"extent_end":2076,"fully_qualified_name":"CleanCommand.description","ident_utf16":{"start":{"line_number":59,"utf16_col":4},"end":{"line_number":59,"utf16_col":15}},"extent_utf16":{"start":{"line_number":59,"utf16_col":4},"end":{"line_number":59,"utf16_col":82}}},{"name":"run","kind":"function","ident_start":2086,"ident_end":2089,"extent_start":2082,"extent_end":2549,"fully_qualified_name":"CleanCommand.run","ident_utf16":{"start":{"line_number":61,"utf16_col":8},"end":{"line_number":61,"utf16_col":11}},"extent_utf16":{"start":{"line_number":61,"utf16_col":4},"end":{"line_number":70,"utf16_col":62}}},{"name":"configuration","kind":"function","ident_start":2637,"ident_end":2650,"extent_start":2633,"extent_end":3205,"fully_qualified_name":"configuration","ident_utf16":{"start":{"line_number":75,"utf16_col":4},"end":{"line_number":75,"utf16_col":17}},"extent_utf16":{"start":{"line_number":75,"utf16_col":0},"end":{"line_number":91,"utf16_col":17}}},{"name":"setup_package","kind":"function","ident_start":3212,"ident_end":3225,"extent_start":3208,"extent_end":5526,"fully_qualified_name":"setup_package","ident_utf16":{"start":{"line_number":94,"utf16_col":4},"end":{"line_number":94,"utf16_col":17}},"extent_utf16":{"start":{"line_number":94,"utf16_col":0},"end":{"line_number":144,"utf16_col":21}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/rajgopalc/scikit-learn/branches":{"post":"eERRtwNvqu8lhWQ5cl-_lDvSlp0XOKKqfp3HMLgzU3I2ZahDl7qHbZJhn3fIld6DpkJFKxsCfAcFQRG4CBTy4w"},"/repos/preferences":{"post":"kvMeFkCsOzito8wSPZ6hIrEOqTU41tLIz7Xgxy6sd1J8CDnpZCl5NsJiwXJY4EhiZW6WFQ7D1Nw1JIuXfYounw"}}},"title":"scikit-learn/setup.py at master · rajgopalc/scikit-learn","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}