Initialize all --prefix subdirectories (#4895)
## Summary We need to initialize the same directories that we create in `bare.rs`, since the installer expects them to exist. Closes #4892.
This commit is contained in:
@@ -25,8 +25,10 @@ impl Prefix {
|
||||
}
|
||||
|
||||
/// Initialize the `--prefix` directory.
|
||||
pub fn init(&self) -> std::io::Result<()> {
|
||||
fs_err::create_dir_all(&self.0)?;
|
||||
pub fn init(&self, virtualenv: &Scheme) -> std::io::Result<()> {
|
||||
for site_packages in self.site_packages(virtualenv) {
|
||||
fs_err::create_dir_all(site_packages)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user