Skip to content

Commit

Permalink
Move these to pantry
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Apr 8, 2023
1 parent 25161ac commit ee1730b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</p>


# tea/cli 0.26.3
# tea/cli 0.26.4

`tea` puts the whole open source ecosystem at your fingertips:

Expand Down
19 changes: 0 additions & 19 deletions src/hooks/useShellEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export const EnvKeys = [
'SSL_CERT_FILE',
'LDFLAGS',
'TEA_PREFIX',
'PYTHONPATH',
'npm_config_prefix',
'ACLOCAL_PATH'
] as const
export type EnvKey = typeof EnvKeys[number]
Expand Down Expand Up @@ -72,21 +70,6 @@ export default async function useShellEnv({installations}: Options): Promise<Rec
if (certPath) vars.SSL_CERT_FILE = OrderedHashSet.of(certPath)
}

// pip requires knowing where its root is
// otherwise it bases it off the location
// of python, which won't work for us
if (installation.pkg.project === 'pip.pypa.io') {
//TODO add to pip’s runtime env keys
vars.PYTHONPATH = compact_add(vars.PYTHONPATH, installation.path.string)
}

// npm requires knowing where its root is
// otherwise it bases it off the location
// of node, which won't work for us
if (installation.pkg.project === 'npmjs.com') {
vars.npm_config_prefix = OrderedHashSet.of(installation.path.string)
}

// pantry configured runtime environment
const runtime = await getRuntimeEnvironment(installation.pkg)
for (const key in runtime) {
Expand Down Expand Up @@ -143,8 +126,6 @@ function suffixes(key: EnvKey) {
case 'SSL_CERT_FILE':
case 'LDFLAGS':
case 'TEA_PREFIX':
case 'PYTHONPATH':
case 'npm_config_prefix':
case 'ACLOCAL_PATH':
return [] // we handle these specially
default: {
Expand Down

0 comments on commit ee1730b

Please sign in to comment.