Lines Matching refs:self

56     def initialize_options(self):
57 self.build_base = 'build'
60 self.build_purelib = None
61 self.build_platlib = None
62 self.build_lib = None
63 self.build_temp = None
64 self.build_scripts = None
65 self.compiler = None
66 self.plat_name = None
67 self.debug = None
68 self.force = 0
69 self.executable = None
70 self.parallel = None
72 def finalize_options(self):
73 if self.plat_name is None:
74 self.plat_name = get_platform()
84 plat_specifier = ".%s-%d.%d" % (self.plat_name, *sys.version_info[:2])
95 if self.build_purelib is None:
96 self.build_purelib = os.path.join(self.build_base, 'lib')
97 if self.build_platlib is None:
98 self.build_platlib = os.path.join(self.build_base,
104 if self.build_lib is None:
105 if self.distribution.ext_modules:
106 self.build_lib = self.build_platlib
108 self.build_lib = self.build_purelib
112 if self.build_temp is None:
113 self.build_temp = os.path.join(self.build_base,
115 if self.build_scripts is None:
116 self.build_scripts = os.path.join(self.build_base,
119 if self.executable is None and sys.executable:
120 self.executable = os.path.normpath(sys.executable)
122 if isinstance(self.parallel, str):
124 self.parallel = int(self.parallel)
128 def run(self):
134 for cmd_name in self.get_sub_commands():
135 self.run_command(cmd_name)
140 def has_pure_modules(self):
141 return self.distribution.has_pure_modules()
143 def has_c_libraries(self):
144 return self.distribution.has_c_libraries()
146 def has_ext_modules(self):
147 return self.distribution.has_ext_modules()
149 def has_scripts(self):
150 return self.distribution.has_scripts()