Skip to content

Commit ee8b716

Browse files
author
Martin Larralde
committed
Fix distutils not liking unicode strings to declare options
1 parent aa9347d commit ee8b716

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

setuptools_rust/tomlgen.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ class tomlgen_rust(setuptools.Command):
2626
description = "Generate `Cargo.toml` for rust extensions"
2727

2828
user_options = [
29-
("force", 'f',
30-
"overwrite existing files if any"),
31-
("create-workspace", 'w',
32-
"create a workspace file at the root of the project"),
33-
("no-config", "C",
34-
"do not create a `.cargo/config` file when generating a workspace")
29+
(str("force"), str('f'),
30+
str("overwrite existing files if any")),
31+
(str("create-workspace"), str('w'),
32+
str("create a workspace file at the root of the project")),
33+
(str("no-config"), str("C"),
34+
str("do not create a `.cargo/config` file when generating a workspace"))
3535
]
3636

37-
boolean_options = ['create_workspace', 'force']
37+
boolean_options = [str('create_workspace'), str('force')]
3838

3939
def initialize_options(self):
4040

@@ -71,6 +71,7 @@ def finalize_options(self):
7171
self.distribution.get_author(),
7272
self.distribution.get_author_email().strip('"\''))
7373

74+
7475
def run(self):
7576

7677
# Create a `Cargo.toml` for each extension

0 commit comments

Comments
 (0)