Skip to content

Commit

Permalink
release v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed May 10, 2023
1 parent 28dace2 commit 82ed1ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

## 0.3.1 - 2023-05-10

***Fixed:***

- Fix default distribution detection for Linux on architectures other than x86_64

## 0.3.0 - 2023-05-10

***Changed:***
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "pyapp"
version = "0.3.0"
version = "0.3.1"
description = "CLI for self-bootstrapped Python applications"
repository = "https://github.com/ofek/pyapp"
license = "Apache-2.0 OR MIT"
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,13 @@ fn get_distribution_source() -> String {
_ => "linux",
}
.to_string();
let selected_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
let selected_variant = {
let mut variant = env::var("PYAPP_DISTRIBUTION_VARIANT").unwrap_or_default();
if variant.is_empty() {
if selected_platform == "windows" {
variant = "shared".to_string();
} else if selected_platform == "linux" {
} else if selected_platform == "linux" && selected_arch == "x86_64" {
variant = "v3".to_string();
}
};
Expand All @@ -221,7 +222,6 @@ fn get_distribution_source() -> String {
};
abi
};
let selected_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();

for (python_version, platform, arch, abi, variant, url) in DEFAULT_CPYTHON_DISTRIBUTIONS.iter()
{
Expand Down

0 comments on commit 82ed1ad

Please sign in to comment.